Level:
Correct: 0
Incorrect: 0
Marks: 0/0
Exam Practice
Course:
Topics:
OCR GCSE Computer Science (Paper 1) Smart practice A mixed round aimed at your weak spots
Unit 1
Systems architecture
Unit 2
Memory and storage
Unit 3
Computer networks, connections and protocols
Unit 4
Network security
Unit 5
Systems software
Unit 6
Ethical, legal, cultural and environmental impacts of digital technology
Avg
score:
–
Topics
done:
0/34

Von Neumann architecture and the fetch-execute cycle

Practise 33 exam-style questions on Von Neumann architecture and the fetch-execute cycle for OCR GCSE Computer Science (Paper 1). Write your answer as you would in the exam and get it marked in seconds against the mark scheme, point by point, with the Study Helper on hand if you get stuck.

  • 33 questions
  • 1–6 marks each
  • Instant marking
  • No sign-up needed
20 questions, marked as you go

Sample questions with model answers

Here are 4 of the questions in this topic, each with a model answer, an explanation of why it earns the marks and the mark scheme an examiner would use.

Question 1

1 mark

Which register holds the data or instruction that has just been read from memory?

Choose your answer.

  • Accumulator
  • MAR
  • MDR
  • Program counter

Model answer

MDR

Explanation

The memory data register (MDR) holds whatever has just been read from memory - an instruction during the fetch stage, or data during the execute stage - and anything that is about to be written to memory. The MAR holds the address of that memory location, not its contents.

Mark scheme
  1. 1 mark

    MDR // memory data register

    If more than one option is given, 0 marks.

Question 2

2 marks

During the fetch stage of the fetch-execute cycle, the program counter (PC) is incremented.

Explain why the PC is incremented.

Model answer

So that the PC holds the address of the next instruction to be fetched. Otherwise the CPU would fetch the same instruction again in the next cycle, instead of moving through the program in order.

Explanation

The PC keeps track of where the CPU is in the program. Program instructions are normally stored one after another in memory, so adding 1 to the PC makes it point to the next one, ready for the next fetch. A jump instruction can change the PC to a different address, which is how a program repeats or skips a section.

Mark scheme
  1. 1 mark

    so that the PC holds / points to the address of the next instruction (to be fetched)

  2. 1 mark

    so that the instructions are fetched / run in order (in sequence) // otherwise the same instruction would be fetched again (in the next cycle)

    Do not award MS2 for 'so it points to the next instruction' - that is MS1.

Question 3

2 marks

These five events happen while one instruction is processed:

P The ALU adds two numbers.
Q The instruction is fetched from memory.
R The control unit decodes the instruction.
S The result is stored in the accumulator.
U The address of the next instruction is taken from the program counter.

Write down the letters P, Q, R, S and U in the order in which the events happen.

Model answer

U, Q, R, P, S

Explanation

Fetch comes first: the address of the next instruction is taken from the program counter (U) and the instruction at that address is fetched from memory (Q). The control unit then decodes it (R). Finally it is executed: the ALU adds the two numbers (P) and the result is stored in the accumulator (S).

Mark scheme
  1. 1 mark

    U, Q, R as the first three, in this order

  2. 1 mark

    P, S as the last two, in this order

    Correct order: U, Q, R, P, S.

Question 4

4 marks

A sports club's scoreboard program executes an instruction that stores the value in the accumulator in the memory location with address 25. The accumulator holds 9.

State the value held in the MAR and the value held in the MDR while the value is being written to memory. Explain each answer.

Model answer

MAR: 25, because the MAR holds the address of the memory location that the data is being written to.
MDR: 9, because the MDR holds the data that is being written to memory.

Explanation

When the CPU writes to memory, the MAR holds where the data is going (the address, 25) and the MDR holds what is being written (the data, 9). It is the same pairing as a memory read, in the other direction: the MAR always holds an address, and the MDR always holds data or an instruction.

Mark scheme
  1. 1 mark

    MAR: 25

  2. 1 mark

    ...because the MAR holds the address of the memory location that is to be written to

    Only if MS1 is awarded.

  3. 1 mark

    MDR: 9

  4. 1 mark

    ...because the MDR holds the data that is to be written to memory

    Only if MS3 is awarded.

Ready to try the rest? Every answer you write is marked against the mark scheme, so you can see exactly where the marks are.

Study Helper Hints first, answers after you try

Stuck on this one? Ask for a hint and I’ll point you in the right direction, without giving the answer away. Once you’ve checked your answer, I’ll show you how the marks are awarded.