CPU, Memory & Program Execution Flashcards

1
Q

What are the fundamental components of a computer system?

A

Hardware and software, including data representation, CPU, memory, program execution, assembly language, compilation, interpretation, and subroutines.

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

What are the five basic parts of a computer system?

A

Memory, Control Unit, Arithmetic/Logic Unit (ALU), Input Unit, Output Unit.

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

What are the three key properties of computer memory?

A

Discrete locations, addresses, and values.

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

How is memory organized in a computer system?

A

As a sequence of discrete locations, each holding 1 byte (8 bits).

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

What is a memory address?

A

A unique number identifying a specific memory location.

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

Why is memory capacity considered finite?

A

Memory locations have limited size, and data may not fit entirely within one location.

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

What is a memory word, and how is it structured?

A

A group of four (32 bits) or eight (64 bits) bytes used as a single unit.

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

What does ‘random access’ mean in RAM?

A

The ability to access any memory location in any order.

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

What does the control unit do?

A

Manages the Fetch/Execute cycle and decodes instructions.

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

What are the steps of the Fetch/Execute Cycle?

A

Instruction Fetch (IF), Instruction Decode (ID), Data Fetch (DF), Instruction Execution (EX), Result Return (RR).

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

What happens during the Instruction Fetch step?

A

The control unit retrieves the next instruction from memory using the Program Counter (PC).

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

What is the purpose of the Instruction Decode step?

A

The control unit interprets the fetched instruction to determine the operation to be performed.

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

What is retrieved during the Data Fetch step?

A

The data required for the operation is fetched from memory and loaded into the ALU.

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

What happens during the Instruction Execution step?

A

The ALU performs the specified operation (e.g., addition or subtraction).

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

Where is the result stored after execution?

A

The result is stored back in the specified memory location.

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

What operations can the ALU perform?

A

Arithmetic operations (add, subtract) and logical operations (AND, OR, NOT).

17
Q

What is the function of the input unit?

A

To receive data from external sources and deliver it to the computer system.

18
Q

What is the purpose of the output unit?

A

To send processed data from the computer to external devices.

19
Q

What are peripherals, and how do they interact with the computer?

A

External devices (like printers and keyboards) that connect through input/output ports.

20
Q

How does a computer execute a program?

A

The program is loaded into memory, and the address of the first instruction is placed in the Program Counter (PC). The Fetch/Execute Cycle is then followed.

21
Q

How does a computer see software?

A

As a long sequence of binary instructions (0’s and 1’s) stored in memory.

22
Q

What does clock speed measure?

A

The number of instructions executed per second, measured in MHz or GHz.

23
Q

What does an ADD instruction in assembly language do?

A

Adds the values found in specified memory locations and stores the result in another location.