Topic 4 - Computers Flashcards

(74 cards)

1
Q

What is a Hardware Machine?

A

The physical components that make up a system.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a Virtual Machine (VM) ?

A

A program with the same functionality of a physical computer.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the three types of computational models?

A

Sequential, parallel, multi-agent

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a sequential computational model?

A

Algorithms that execute from start to finish, line by line.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a parallel computational model?

A

Algorithms that can be executed simultaneously on multiple processing devices.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a multi-agent computational model?

A

Algorithms that consist of individual agents that work individually and in a decentralised way.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How can we briefly describe a Computer System?

A

Input –> Process Storage –> Output

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is RAM?

A

Random Access Memory - anything stored in here can be accessed in roughly the same amount of time.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is latency?

A

The time delay between stimulation and response.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is ROM?

A

Read-Only Memory: can only be read, not changed or updated, and stores essential programs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is a CPU?

A

Central Processing Unit: the circuitry in a computer and controls the manipulation of data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What 3 parts does the CPU consist of?

A
  1. Arithmetic Logic Unit (ALU)
  2. Registers
  3. Control Unit (CU)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What does the ALU do?

A

Circuits that perform logical, mathematical operations on data (e.g. + , Boolean)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What do registers do?

A

Small stores of data within the CPU that temporarily hold data, addresses and instructions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What does the Control Unit (CU) do?

A

A circuitry coordinating the activities of a computer.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What does an Address Bus do?

A

Specifies the physical memory location where the processor needs to read and write to in the memory.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What does a Data Bus do?

A

Transmits the actual data to and from the memory.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What is the name of the process that the CPU uses when dealing with memory?

A

Fetch-Execute Cycle

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

What does the Program Counter (PC) do ?

A

Stores the memory location of the next instruction to be executed. It increments after the end of the fetch stage.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

What does the Current Instruction Register (CIR) do?

A

Stores instructions currently being processed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

What happens in the FETCH stage (4) ?

A
  1. CPU receives address by the PC
  2. Address is added to the address bus.
  3. Main memory receives this and transfers this to a data bus back to CPU.
  4. Instruction stored in the CIR.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

What happens in the DECODE stage (2) ?

A
  1. CU makes sense of the instruction according to the instruction set.
  2. Instruction decomposed into its individual components.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

What happens in the EXECUTE stage?

A

CU activates and initiates the processing required by the instruction. (i.e. if arithmetic calculation = ALU)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

In what form are all computer programs executed in by the processor?

A

Machine code (1s and 0s)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
When machine code is translated, what happens?
Each high-level instruction is split into smaller low-level instructions.
26
What is assembly language?
An improved alternative of binary and uses mnemonics.
27
What is hardware?
The physical items that make up a computer system.
28
What is the processor (CPU) ?
Carries out the instructions from programs by processing data.
29
What is Main Memory?
Temporarily stores data and program instructions for open applications.
30
Is RAM a form of non-volatile or volatile memory?
Volatile - the data is lost if the power is turned off.
31
What is Secondary Storage?
A persistent store of data and is not directly connected to the CPU.
32
What is an Input Device?
Inputs data for processing .
33
What is an Output Device?
Presents data that has been processed.
34
What are examples of input devices (2) ?
Camera, buttons
35
What are examples of output devices (2) ?
Speakers and a touch screen (input AND output)
36
What are the three types of Secondary Storage devices?
Magnetic, Optical, Solid-State
37
What are the three features of a Magnetic secondary storage device?
+ Large capacity and cheap to buy / Usually reliable but not that durable - Generally not very portable
38
What are the three features of an Optical secondary storage device?
- Per unit, they have a small capacity / Fairly reliable and durable but can be easily damaged. + Good portability - easy to transport and carry.
39
What are the three features of a Solid-State secondary storage device?
/ Very fast for storage but expensive + Very reliable as they are non-mechanical. - Generally have a smaller capacity than magnetic
40
What is a microcontroller?
A small computer contained on a single chip.
41
What are examples of microcontrollers?
TV Remote, Car keys, Digital fridges, etc.
42
What is an Actuator?
A motor that can move/control a system.
43
What is a sensor?
Detects changes to its environment and converts it into an output, e.g. light intensity, altitude (barometer)
44
What are the three basic Boolean operators?
AND OR NOT
45
What is a Truth Table?
A method of representing every possible result based on inputs in a Boolean expression.
46
How does AND work?
Returns true if BOTH conditions are true, else the result is false.
47
How does OR work?
Returns true if EITHER the conditions are true. It will only return false if both conditions are false.
48
How does NOT work?
Reverses (negates) the input.
49
What is software?
The programs running on a computer system.
50
What is Application Software?
Programs that perform a specific task for the benefit of the user.
51
What are some examples of Application software?
Word processors, apps, games, web browsers, etc.
52
What is System Software?
Performs tasks needed to operate the hardware (e.g. operating systems, game machines). They provide service for other software.
53
What is an Operating System (OS) ?
The essential software that links the hardware and OTHER software together and manages the computer.
54
What are some examples of Operating Systems?
Android, Linux, Windows, iOS
55
What two things does an Operating System do?
1. Hides the true complexity of the hardware. | 2. Manages the hardware resources, I/O devices, etc.
56
What 7 tasks does an Operating System perform?
1. File Management 2. Input / Output 3. Resource Allocation 4. Process Management 5. Network Management 6. Memory Management 7. User Management
57
What is a Software Model?
A computer program designed to simulate aspects of the real world.
58
What are examples of Software Models?
Weather, Economics, Nuclear Physics, etc.
59
What are some advantages of using Software Models?
1. Saves time and money 2. Tests can be repeatedly run. 3. Factors like safety are not an issue
60
What is a programming language?
A formal constructed language designed to communicate instructions to a machine.
61
What are two examples of low-level programming languages?
1. Machine Code | 2. Assembly Language
62
What are 4 examples of high-level languages?
1. C++ 2. Java 3. Python 4. Pseudocode
63
What are two examples of Natural Languages?
1. English | 2. German (or any other spoken language)
64
What is Machine Code made up of?
0s and 1s.
65
What are three features of Machine Code?
- Written for specific processors so NOT VERY PORTABLE + Executes very fast - Impractical: code is very long and errors are hard to find
66
What are three features of Assembly Language?
+ More programmer-friendly + Allows high control - Still fairly difficult to deal with.
67
What are three features of High-Level languages?
+ Far easier to use - Strict syntax + Portable + Simplistic and efficient
68
What is a translator?
A program that converts code from one language into another.
69
What are the two types of high-level translators?
COMPILER and INTERPRETER
70
What does a compiler do?
Converts high-level language into machine code.
71
How does a compiler translate the code?
- Scans through the whole code. | - Translates it ALL into object code (i.e. machine code)
72
What does a interpreter do?
Converts high-level language into machine code.
73
How does an interpreter translate the code?
- Works line by line.
74
What are two comparisons between a compiler and an interpreter?
- Interpreters are slower than compilers. | - Interpreters are more flexible than compilers.