Question 1
The processor in a school library's self-checkout kiosk runs a program that adds up the fines on a student's account.
(a) State the function of the arithmetic logic unit (ALU). [1]
(b) State what is held in the program counter (PC). [1]
[2]
- p1 [1]
(a) States that the ALU carries out arithmetic operations (such as adding) and logical operations (such as comparisons or AND/OR).
- p2 [1]
(b) States that the PC holds the memory address of the next instruction to be fetched.
Also accept
- For p1, "does the calculations and the comparisons" earns the mark.
- For p1, "performs arithmetic" alone, or "performs logical operations" alone, earns the mark.
- For p2, "the address of the instruction that will be fetched next" earns the mark.
No marks for
- For (a), "controls the other parts of the CPU". That is the control unit.
- For (b), "holds the next instruction". The PC holds the address of the instruction, not the instruction itself (that goes into the instruction register).
- For (b), "counts how many programs are running". The name misleads; it holds an address.
A full-marks answer
(a) The ALU performs arithmetic operations, such as adding two fines together, and logical operations, such as comparing two values.
(b) The program counter holds the memory address of the next instruction to be fetched.