A computer follows the von Neumann stored program concept. A program's instructions are stored on secondary storage before the program is run.
Explain one reason why the instructions of a program must be held in RAM before they can be executed.
Mark scheme
Award up to two marks for a linked explanation such as:
- The CPU can only fetch/read instructions from main memory/RAM (1) so the instructions of a running program must be copied/loaded into RAM before they can be executed (1)
- RAM is faster to access than secondary storage (1) so the instructions can be fetched quickly enough for the CPU to execute them (1)
- The CPU needs the instructions in RAM to fetch and execute them (1) because the fetch-decode-execute cycle reads each instruction from main memory/RAM (1)
- The address of the next instruction is sent to RAM on the address bus (1) so the instruction can be transferred to the CPU/registers for decoding/execution (1)
For both marks, the expansion must follow/associate with the statement.
Allow the point and reason in either order if they are linked.
Do not accept answers that only say the CPU needs instructions, or that RAM is faster, without linking this to fetching/executing the instructions.
Do not accept answers that only say RAM holds data and instructions without linking this to the fetch-decode-execute cycle.
Do not accept 'RAM is permanent/non-volatile storage, so the instructions are kept safe' - RAM is volatile.
The response does not need to name the address bus or the fetch stage for full marks; a linked reason that explains why instructions must be in RAM (for example, the CPU can only fetch from RAM, or RAM is faster than secondary storage) is enough.
Example answers and how they were marked
The CPU can only fetch instructions from main memory, so the instructions of a running program must be copied into RAM before they can be executed.
Why: Linked point (1) for the CPU only being able to fetch instructions from main memory/RAM, and reason (1) for instructions being copied into RAM before execution.
The CPU can only fetch instructions from main memory.
Why: Point (1) only; there is no linked reason that explains why this means the instructions must be held in RAM before execution, such as RAM being faster than secondary storage.
Instructions are kept in RAM because RAM is permanent storage and does not lose the instructions when the power is turned off.
Why: Misconception: RAM is described as permanent/non-volatile, which the mark scheme's 'Do not accept' line rules out; no creditworthy linked point.