EXAM QUESTIONS · AS LEVEL 9618

Processor Fundamentals Exam-Style Questions with Answers (A Level 9618)

Original exam-style questions on Von Neumann architecture, registers, buses, CPU performance, ports, the fetch-execute cycle in register transfer notation, interrupts, assembly language and addressing modes for Cambridge AS & A Level Computer Science 9618 (Paper 1). There are 27 marks in total. Try each question on paper first, then press Show answer to see the mark scheme. Answers that can be calculated mark themselves.

Question 1[3 marks]

Describe the main features of the Von Neumann architecture.

Show answer

Any three from:

  • A single processor (CPU) that carries out instructions one at a time.
  • The stored program concept: instructions and data are stored in the same main memory.
  • Instructions and data are both stored as binary.
  • Instructions are fetched from memory and executed in sequence.
  • A single bus/path is used for both data and instructions.
Question 2[4 marks]

State the purpose of each register.

  1. Current Instruction Register (CIR) [1]
  2. Accumulator (ACC) [1]
  3. Index Register (IX) [1]
  4. Status Register [1]
Show answer
  1. Holds the instruction that is currently being decoded and executed. [1]
  2. Holds the result of calculations / the value being worked on by the ALU. [1]
  3. Holds a value that is added to an address to give the effective address in indexed addressing. [1]
  4. Holds flags (bits) showing the result of an operation, e.g. carry, overflow, negative, zero. [1]
Question 3[3 marks]

Describe the role of the address bus, the data bus and the control bus.

Show answer
  • Address bus: carries memory addresses from the CPU to memory/devices; it is one-way (unidirectional). [1]
  • Data bus: carries data and instructions between the CPU, memory and I/O devices; it is two-way (bidirectional). [1]
  • Control bus: carries control signals such as read, write, clock and interrupt signals; it is two-way. [1]
Question 4[2 marks]

Explain how increasing the width of the address bus affects a computer.

Show answer
  • More bits can be used for each address. [1]
  • So more memory locations can be addressed (2n locations), meaning more RAM can be used. [1]
Question 5[4 marks]

Write the fetch stage of the fetch-execute cycle using register transfer notation.

Show answer
MAR ← [PC]
PC ← [PC] + 1
MDR ← [[MAR]]
CIR ← [MDR]

1 mark for each line, in a correct order. [4]

Note: PC ← [PC] + 1 can happen at the same time as MDR ← [[MAR]].

Question 6[3 marks]

Explain how the processor deals with an interrupt.

Show answer

Any three from:

  • At the end of each fetch-execute cycle the processor checks for interrupts.
  • If there is an interrupt with a higher priority than the current task, the contents of the registers (including the PC) are saved, e.g. on a stack.
  • The address of the interrupt service routine (ISR) is loaded into the PC.
  • The ISR is executed.
  • The saved register contents are restored and the original task continues.

For Questions 7–9, use these assembly language instructions. (ACC is the accumulator and IX is the index register.)

InstructionWhat it does
LDM #nPuts the number n itself into ACC
LDD <address>Copies the value stored at that address into ACC
LDI <address>Looks at that address to find a second address, then copies the value stored at the second address into ACC
LDX <address>Adds the value in IX to the address given, then copies the value stored at the resulting address into ACC
ADD #nIncreases ACC by the number n
ADD <address>Increases ACC by the value stored at that address
STO <address>Saves the value in ACC to that address
ENDStops the program
Question 7[4 marks]

Memory contains these values:

Address100101102103104
Contents71021540

This program is run:

LDD 100
ADD 103
STO 104
LDI 101
ADD #5
END

State the contents of the ACC and of address 104 when the program ends.

Show answer
  • LDD 100 → ACC = 7
  • ADD 103 → ACC = 7 + 4 = 11
  • STO 104 → address 104 = 11
  • LDI 101 → address 101 holds 102, so load the contents of 102 → ACC = 15
  • ADD #5 → ACC = 20

ACC = 20 [2], address 104 = 11 [2]

Question 8[2 marks]

Memory addresses 200 to 203 contain 9, 14, 30 and 6. The Index Register (IX) contains 2.

State the value in the ACC after the instruction LDX 200 is executed, and explain why.

Show answer
  • 30 [1]
  • The address used is 200 + IX = 200 + 2 = 202, and address 202 contains 30. [1]
Question 9[2 marks]

Explain the difference between the instructions LDM #50 and LDD 50.

Show answer
  • LDM #50 uses immediate addressing: the number 50 itself is loaded into the ACC. [1]
  • LDD 50 uses direct addressing: the contents of memory address 50 are loaded into the ACC. [1]

Frequently asked questions

What is the difference between direct and indirect addressing?

In direct addressing the operand is the address of the data. In indirect addressing the operand is the address of a location that holds the address of the data.

Are these past paper questions?

No. These are original exam-style questions written by a Computer Science teacher in the Cambridge style.

Revise the topic: 9618 processor fundamentals notes · 9618 flashcards · All exam-style questions