Hardware and software

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/41

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

42 Terms

1
New cards

What is hardware?

Refers to the physical parts of a computer (aka computer components & peripherals).

2
New cards

What is software?

Refers to the set(s) of instructions given to the computer to execute one or more tasks. (aka programs)

3
New cards

What is Von Neumann Architecture and when did he designed it?

Describes how a conceptual computing device works (designed in the 1960s)

<p>Describes how a conceptual computing device works (designed in the 1960s)</p>
4
New cards

What does memory store?

Stores data & instructions.

5
New cards

What does the CU (control unit) do?

Obtains & executes instructions

6
New cards

What does ALU (Arithmetic Logic Unit) do?

Does calculations (both arithmetic and Boolean)

7
New cards

What is an accumulator?

Internal ALU storage for some data. (Inside the ALU)

8
New cards

What is input (in Von Neumann Architecture)?

Process of getting data into machine

9
New cards

What is output (in Von Neumann Architecture)?

Process of getting data from machine

10
New cards

Are most modern computers are Von Neumann machines?

Yes

11
New cards

List some output devices that are part of a modern computer

Monitor, speaker

12
New cards

List some input devices that are part of a modern computer

Keyboard, mouse, microphone, camera

13
New cards

List some system unit that are part of a modern computer

CPU, Memory, Hard Drive, Floppy Drive, GPU, network card, I/O card, Motherboard, Power Supply

14
New cards

What is a CPU (Central Process Unit)

Microchip that performs core computations; usually contains the ALU & CU

15
New cards

What is memory (primary storage)

Microchips that store data which can be accessed while computer is switched on

16
New cards

What is RAM (Random Access Memory)?

Volatile and modifiable. Information is lost when power is cut

17
New cards

What is ROM (Read-Only Memory)?

Non-volatile and non-modifiable

18
New cards

What are Hard drives (Secondary storage)

Stores data on magnetic disk (HDD) or magnetic strips (SSD) permanently

19
New cards

What do I/O (Input/Output) devices do?

Transfer data from user to machine and vice versa

20
New cards

What is an operating system (OS)?

The most important software; manages resources on the computer and executes applications

21
New cards

What is assembly language?

Express machine code symbolically to assist human programming

22
New cards

Is Machine code low level?

Yes

23
New cards

What language/s can the CPU understand?

Machine code (only)

24
New cards

Is Machine code universal to all CPU? (i.e. one machine code works for all type of CPU?)

Nope → machine code is unique to each CPU

25
New cards

What are the pros of coding in assembly?

  • Assembly matches machine code so codes for whatever CPU can do.

  • Very fast program execution.

  • Can be used on obscure CPUs.

26
New cards

What are the cons of coding in assembly?

  • Difficult to program.

  • Programs are very long.

  • Programming is slow and error-prone.

27
New cards

What is the difference between low-level programming and high-level programming?

Lower the level → less abstraction and more difficult for human to understand but easier for computer

28
New cards

What was the first high level programming language?

COBOL

29
New cards

Are the instructions for machine code all equal length?

No

30
New cards

What are the two ways to convert high-level code to low-level code?

  • Compiler: (e.g., C++, Java) Translates entire code at once.

  • Interpreter: (e.g., Python) Translates and executes code line by line.

31
New cards

What is the advantage and disadvantage of interpreter?

  • Advantage: Easier to program with

  • Disadvantage: Slower to run

32
New cards

What are the different type of high-level programs?

  • Procedural/Imperative: Programs specified as exact sets of instructions (Python, Java, C++).

  • Declarative/Logic: Programs are rules and facts processed by an engine (Prolog, XSLT).

  • Functional: Programs are collections of functions that are applied and composed to solve problems (Haskell, Lisp).

33
New cards

How does the operating system executed on start-up?

  • BIOS/ROM loads initial instructions to load OS.

  • Disks are checked in a defined order.

  • If OS machine code is found, it is loaded into memory and starts execution.

  • OS takes over and allows user to select and run programs until computer shuts down.

34
New cards

What does the operating system do?

Manages resources on computer

35
New cards
<p>What device is this?</p>

What device is this?

Hard drive

36
New cards
<p>What device is this?</p>

What device is this?

IO card

37
New cards
<p>What device is this?</p>

What device is this?

Network card

38
New cards
<p>What device is this?</p>

What device is this?

Graphic card

39
New cards
<p>What device is this?</p>

What device is this?

Drive controller card

40
New cards
<p>What device is this?</p>

What device is this?

Motherboard

41
New cards
<p>What device is this?</p>

What device is this?

CPU

42
New cards

Who invented the first compiler

Grace Hopper