Menu

Primary Memory Exam Questions

15 Edexcel GCSE Computer Science (1CP2) exam-style questions on Primary Memory (3.1 Hardware), 38 marks in all. Answer them on paper or print them, then open the mark schemes and example answers to see how each is marked.

Revise Primary Memory first

Build a paper on 3.1 Hardware
Print
1Multiple choice1 mark

RAM is the main memory of a computer.

Identify the effect on the contents of RAM when the computer is switched off.

[1 mark]
  • AThey are lost
  • BThey are stored permanently
  • CThey are saved to secondary storage
  • DThey are written to ROM
Mark scheme
  • A They are lost (1)
  • The only correct answer is A. The correct answer is They are lost
  • B is not correct because RAM is volatile and its contents are lost when the power is switched off, so they are not stored permanently
  • C is not correct because RAM is volatile and its contents are lost when the power is switched off, so they are not saved to secondary storage
  • D is not correct because ROM is read-only memory that holds the start-up instructions, so the contents of RAM are not written to it
Example answers and how they were marked
Full marks1/1

A They are lost

Why: Selected the correct option. RAM is volatile, so its contents are lost when the power is switched off (1).

No marks0/1

C They are saved to secondary storage

Why: Near miss: thinks RAM contents are automatically saved, but RAM is volatile and its contents are not saved to secondary storage (0).

No marks0/1

B They are stored permanently

Why: Misconception: thinks RAM is non-volatile and keeps data permanently, but RAM is volatile and loses its contents when the power is switched off (0).

2Multiple choice1 mark

A computer is running an application. The application's data and instructions are transferred from secondary storage into RAM before the CPU processes them.

Identify the reason for this transfer.

[1 mark]
  • ARAM is non-volatile
  • BRAM is faster to access than secondary storage
  • CRAM has a larger capacity than secondary storage
  • DRAM is cheaper than secondary storage
Mark scheme
  • B RAM is faster to access than secondary storage (1)
  • The only correct answer is B. The correct answer is RAM is faster to access than secondary storage.
  • A is not correct because RAM is volatile
  • C is not correct because RAM has a smaller capacity than secondary storage
  • D is not correct because RAM is more expensive than secondary storage
Example answers and how they were marked
Full marks1/1

B RAM is faster to access than secondary storage

Why: Selects the correct option: RAM is faster to access than secondary storage, so data and instructions can reach the CPU quickly (1).

No marks0/1

A RAM is non-volatile

Why: Near miss: RAM is volatile; this does not explain the transfer into RAM.

No marks0/1

C RAM has a larger capacity than secondary storage

Why: Misconception: assumes primary memory has a larger capacity, but RAM has a smaller capacity than secondary storage.

3Multiple choice1 mark

Identify what is fetched from RAM during the fetch stage.

[1 mark]
  • AThe next instruction
  • BThe data at a memory address
  • CThe decoded instruction
  • DThe address of the next instruction
Mark scheme
  • A The next instruction (1)
  • The only correct answer is A. The correct answer is the next instruction.
  • B is not correct because data is fetched during the execute stage
  • C is not correct because an instruction is decoded after it is fetched
  • D is not correct because the program counter holds the address used to fetch the instruction
Example answers and how they were marked
Full marks1/1

A The next instruction

Why: The next instruction is fetched from RAM during the fetch stage (1).

No marks0/1

B The data at a memory address

Why: Near miss: data is not fetched during the fetch stage; data is used during the execute stage.

No marks0/1

C The decoded instruction

Why: Misconception: an instruction is decoded after it is fetched, in the decode stage.

4Short recall1 mark

Computers use RAM to store the data and instructions that are in use.

Name the term used to describe memory that loses its contents when the power is switched off.

[1 mark]
Mark scheme

Award one mark for:

  • Volatile (1)

Allow volatile memory / it is volatile.

Do not accept non-volatile, ROM, RAM or temporary/short term memory on their own, as these are not the term asked for.

Example answers and how they were marked
Full marks1/1

Volatile

Why: Correct term for memory that loses its contents when the power is switched off (1).

No marks0/1

Temporary memory

Why: Describes what such memory does but is not the term asked for; 'temporary memory' is on the Do not accept line, so no mark.

No marks0/1

Non-volatile

Why: Non-volatile memory keeps its contents when the power is switched off, the opposite of what the question describes; it is explicitly not accepted.

5Short recall2 marks

An application's instructions and data are copied from secondary storage into RAM before it runs.

Give two reasons why the instructions and data are copied into RAM rather than being read directly from secondary storage.

[2 marks]
Mark scheme

Award one mark for any of the following up to a maximum of two marks:

  • RAM can be accessed/read (much) faster than secondary storage / secondary storage is (much) slower than RAM (1)
  • The CPU would have to wait/idle if instructions and data were read directly from secondary storage (1)
  • The CPU can access RAM directly / RAM is directly accessible to the CPU (1)

Allow hard disk / hard drive / SSD for secondary storage.

Do not accept RAM is volatile / so that instructions and data are not lost when the power is switched off.

Do not accept the computer runs faster / has more storage (without reference to the CPU accessing instructions and data).

Example answers and how they were marked
Full marks2/2

RAM can be accessed much faster than secondary storage, so the CPU would have to wait for its instructions if they were read from the hard disk.

Why: Creditworthy point that RAM is accessed/read faster than secondary storage (1) and the linked point that the CPU would wait/idle without this (1).

Some marks1/2

RAM can be read faster than the hard disk.

Why: Gives one creditworthy reason, that RAM is accessed/read faster than secondary storage (1), but does not say why this matters to the CPU, so the second mark is not earned.

No marks0/2

So that the data is not lost when the computer is switched off.

Why: RAM is volatile, so keeping data when the power is off is not a reason for using RAM; this is the misconception in the Do not accept line and scores nothing.

6Short recall2 marks

A computer is designed using the von Neumann stored program concept.

Define the term stored program concept.

[2 marks]
Mark scheme

Award one mark for any of the following up to a maximum of two marks:

  • The program instructions and data are stored together in main memory/RAM (1)
  • The same memory is used for both instructions and data (1)
  • The instructions are fetched from main memory and executed by the CPU (1)
  • The instructions are fetched and executed one at a time / in sequence (1)
  • The program can be changed/replaced by loading new instructions into memory, without changing the hardware (1)

Do not accept the program is stored in secondary storage / on the hard disk.

Do not accept the program is stored in the CPU / in registers.

Example answers and how they were marked
Full marks2/2

The program instructions and the data are stored together in main memory, and the CPU fetches the instructions one at a time and executes them.

Why: Creditworthy point that instructions and data are stored in the same main memory (1) and the linked point that the CPU fetches and executes them from memory (1).

Some marks1/2

The program is held in the main memory (RAM) so that the computer can run it.

Why: Earns the point that the program instructions are stored in main memory (1), but does not say that the CPU fetches and executes them, so the second mark is not earned.

No marks0/2

The program is stored on the hard disk and loaded into the CPU when it is run.

Why: Both parts are misconceptions named in the Do not accept lines: the stored program concept keeps the instructions in main memory, not on secondary storage or in the CPU.

7Describe2 marks

Computers use main memory (RAM).

Describe the role of main memory (RAM) in the von Neumann stored program concept.

[2 marks]
Mark scheme

Award up to two marks for a linked description such as:

  • Holds/stores the data and instructions of the program currently being run (1) to be fetched by the CPU during the fetch-decode-execute cycle (1)
  • Instructions and data are loaded/copied from secondary storage into RAM (1) before they can be processed by the CPU (1)
  • Stores the program that is currently running (1) together with the data that it uses (1)
  • Holds the data and instructions that the CPU needs next (1) so the CPU can access them quickly (1)

Allow a response that describes both that RAM holds the current program and that the program was loaded from secondary storage into RAM, provided each statement is linked to a development.

Do not accept responses about cache or registers as the store of the current program.

Do not accept responses that say RAM stores data permanently or that RAM is read-only.

Do not accept 'RAM is where the CPU processes data' (this describes the ALU/registers), or 'RAM stores the operating system' unless it is linked to the program currently being run.

Do not award a second mark for a response that only states that RAM holds data and instructions with no linked development.

Example answers and how they were marked
Full marks2/2

RAM holds the data and instructions of the program that is currently running (1) so that the CPU can fetch them during the fetch-decode-execute cycle (1).

Why: Linked point (1): holds data and instructions of the current program, plus linked development (1): fetched by the CPU in the cycle.

Some marks1/2

RAM holds the data and instructions that the computer is using at the moment.

Why: States the role (1) but gives no linked development, so only the first mark is awarded.

No marks0/2

RAM is the secondary storage, so the program is kept there when the power is switched off.

Why: Confuses main memory with secondary storage and says contents are kept without power; both near-misses are named in the 'Do not accept' lines, so no mark.

8Describe2 marks

Computers use RAM to hold data and instructions while programs run. RAM is volatile.

Describe what this means for the data and instructions that are held in RAM.

[2 marks]
Mark scheme

Award up to two marks for a linked description such as:

  • The data and instructions held in RAM are lost/cleared/erased when the power is switched off / is cut (1) so RAM can only hold the data and instructions for programs that are currently running (1)
  • If the power is switched off, the data and instructions held in RAM cannot be read/used by the CPU (1) so a program cannot carry on from where it stopped (1)
  • RAM can only hold the data and instructions for a program while the computer is switched on (1) because it loses its contents / cannot keep them without a continuous power supply (1)

Accept 'RAM needs a continuous power supply' / 'RAM needs power to keep its data and instructions' as an alternative way of saying that the data and instructions in RAM are lost when the power is switched off (1). Do not award a second mark for a response that only repeats that the contents are lost when the power is switched off (e.g. 'the data is gone when the power is off').

Do not accept responses that say the data and instructions in RAM are permanent / are stored when the power is off.

Do not award a mark for responses that say RAM is temporary / temporarily holds data with no reference to the power being switched off.

Do not award a mark for responses that state data is deleted/lost without any reference to the power being switched off.

Do not award a mark for responses about RAM being fast, small/large in capacity or read-only, as these do not describe volatility.

Example answers and how they were marked
Full marks2/2

The data and instructions held in RAM are lost when the power is switched off (1) so RAM can only hold the data and instructions for programs that are currently running (1).

Why: Linked point (1): the contents are lost when the power is switched off, plus a distinct linked development (1): RAM only holds the data and instructions for programs that are currently running.

Some marks1/2

If the power is cut then the data and instructions in RAM are gone.

Why: Correct point (1): the data and instructions are lost when the power is cut; no distinct development is given, so only one mark.

No marks0/2

RAM is volatile, which means the data in it is stored permanently and cannot be changed.

Why: Reverses the meaning of volatile and says the contents are permanent; this is the misconception covered by the 'Do not accept' line, so no mark.

9Describe2 marks

A computer has both primary memory (RAM) and secondary storage.

Describe why the instructions and data of a program are copied from secondary storage into RAM.

[2 marks]
Mark scheme

Award up to two marks for a linked description such as:

  • RAM can be read from/written to much faster than secondary storage (1) so the CPU can fetch the instructions and data quickly enough to keep working/does not idle (1)
  • The CPU can fetch/execute instructions faster than they can be read from secondary storage (1) so instructions and data are copied into RAM to avoid the CPU waiting/idling (1)
  • RAM is connected to the CPU by the address/data/control buses (1) so the CPU can fetch instructions and data directly from main memory during the fetch-decode-execute cycle (1)

For each linked description, the first mark is for the point and the second mark is for a valid development linked to it. A point with no development scores 0. A development that only repeats the point (for example, 'so data can be accessed faster') does not earn the second mark, but the point can still earn one mark.

Do not accept responses that only restate the question, such as 'so the program is copied into RAM'.

Do not accept responses about RAM being volatile, being permanent/non-volatile storage or having a large capacity.

Do not award for a response that only says the CPU cannot run instructions directly from secondary storage, or that the CPU can only directly access main memory, unless it is linked to why this means RAM gives faster access (for example, so the CPU does not wait).

Example answers and how they were marked
Full marks2/2

RAM can be read from and written to much faster than secondary storage, so the CPU can fetch the instructions and data quickly enough to keep working without idling.

Why: Linked point (1) for RAM being faster than secondary storage, and linked development (1) for the CPU fetching instructions/data quickly enough to keep working/not idle.

Some marks1/2

RAM can be accessed faster than a hard disk drive, so the data can be accessed faster.

Why: Correct point (1) that RAM is faster than secondary storage, but the development only repeats that access is faster and does not say how this helps the CPU, so no second mark.

No marks0/2

The instructions are copied into RAM so that they are stored permanently after the computer is switched off.

Why: Says RAM stores data permanently, which is wrong; this is the role of secondary storage and is covered by the 'Do not accept' line, so no mark.

10Explain2 marks

RAM is used to store data while a computer is running.

Explain one reason why the data in RAM is lost when a computer is switched off.

[2 marks]
Mark scheme

Award up to two marks for a linked explanation such as:

  • RAM is volatile (memory) (1) because it needs a constant/continuous power supply to hold/store the data it contains (1)
  • Data is held in RAM as electrical states/charges (1) so when the power supply is removed these states cannot be kept/refreshed and the data is lost (1)
  • RAM is used as short-term storage for the data and instructions currently in use (1) because it can only hold them while the computer has power (1)

For both marks, the expansion must follow/associate with the statement and must link the loss of the data to the power supply being removed.

Accept 'RAM is volatile' on its own for the first mark; the second mark is only awarded for a linked reason about the power supply.

Do not accept 'RAM is temporary/short-term memory' or 'RAM is cleared when the computer is switched off' on its own for both marks, as neither gives a reason.

Do not accept answers that say the data is deleted/cleared/erased by the computer or the operating system, or that the data is saved/moved to secondary storage, without saying why the data cannot be kept (e.g. because RAM needs power/is volatile).

Example answers and how they were marked
Full marks2/2

RAM is volatile memory, which means it needs a constant power supply to keep the data it is holding. When the power is switched off, the data is lost.

Why: Linked point (1) for 'RAM is volatile memory' and reason (1) for needing a constant power supply to hold the data.

Some marks1/2

The data in RAM is lost because RAM is volatile memory.

Why: Point (1) for 'RAM is volatile' but no linked reason about the power supply, and the mark scheme states that 'RAM is volatile' alone earns only the first mark.

No marks0/2

The data is deleted from RAM by the operating system when the computer is shut down so that the memory is free for next time.

Why: No creditworthy point: the answer says the data is deleted without saying why it cannot be kept, which the mark scheme's 'Do not accept' line rules out.

11Explain2 marks

A technician increases the amount of RAM in a laptop from 8 GiB to 16 GiB.

Explain one benefit of increasing the amount of RAM in a computer.

[2 marks]
Mark scheme

Award up to two marks for a linked explanation such as:

  • More applications/programs can be open/run at the same time (1) because more instructions and data can be held in main memory at once (1)
  • Programs run faster (1) because the CPU does not have to wait for instructions/data to be read/transferred from slower secondary storage (1)
  • The CPU waits/idles for less time (1) because instructions and data can be transferred to the CPU more quickly from RAM (1)

For both marks, the expansion must follow/associate with the statement.

Do not accept 'more files/photos/documents can be stored' or 'the computer has more storage' - this is a benefit of secondary storage, not RAM.

Do not accept 'the CPU becomes faster' or 'the clock speed increases'.

Example answers and how they were marked
Full marks2/2

More programs can be open at the same time because more instructions and data can be held in main memory at once.

Why: Linked point (1) for more programs running at the same time and reason (1) for more instructions and data being held in main memory at once.

Some marks1/2

Programs will run faster.

Why: Point (1) only; no linked reason such as the CPU not having to wait for data from slower secondary storage.

No marks0/2

There will be more space to save files and documents on the laptop.

Why: Misconception: the benefit given is a benefit of secondary storage, which the mark scheme's 'Do not accept' line rules out.

12Explain2 marks

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.

[2 marks]
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
Full marks2/2

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.

Some marks1/2

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.

No marks0/2

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.

13Discuss6 marks

A school is buying new computers for its IT room. The computers the technician has ordered have 16 GB of RAM and a large hard drive.

Discuss why main memory (RAM) is needed for programs to run on these computers.

Your answer should include:

  • the role of RAM in the stored program concept
  • what happens to a program when it is opened
  • why the CPU cannot execute a program directly from secondary storage.
[6 marks]
Mark scheme

Indicative content

the role of RAM in the stored program concept

  • In the von Neumann stored program concept, a program's instructions and the data it uses are held together in main memory.
  • RAM holds the instructions and data of the program that the CPU is currently processing.
  • The CPU fetches each instruction from RAM during the fetch-decode-execute cycle, so a program must be in RAM before it can be run.
  • RAM is directly accessible by the CPU, so instructions can be fetched quickly enough for the CPU to keep working.

what happens to a program when it is opened

  • When a program is opened, a copy of its instructions and data is transferred from secondary storage, such as the hard drive, into RAM.
  • The operating system loads the program into RAM so that the CPU can start fetching and executing its instructions.
  • When the program is closed, it is removed from RAM, and the space it used is free for another program.
  • If a computer does not have enough RAM, the program may not open, or another open program has to be closed first.

why the CPU cannot execute a program directly from secondary storage

  • Secondary storage, such as a hard disk drive, is much slower to access than RAM.
  • The CPU can process instructions much faster than secondary storage can supply them, so the CPU would have to wait and would not be working at full speed.
  • RAM is fast electronic memory with no moving parts, so data can be read from it in a fraction of the time taken by a magnetic hard disk drive.
  • Running the school's programs directly from secondary storage would make the computers in the IT room very slow to use.

Levels

  • Level 0 (0 marks): No rewardable content.
  • Level 1 (1–2 marks): Basic, independent points are made, showing elements of understanding of key concepts/principles of computer science. (AO1) The discussion will contain basic information with little linkage between points made or application to the context. (AO2)
  • Level 2 (3–4 marks): Demonstrates adequate understanding of key concepts/principles of computer science. (AO1) The discussion shows some linkages and lines of reasoning with some structure and application to the context. (AO2)
  • Level 3 (5–6 marks): Demonstrates comprehensive understanding of key concepts/principles of computer science to support the discussion being presented. (AO1) The discussion is well developed, with sustained lines of reasoning that are coherent and logically structured, and which clearly apply to the context. (AO2)

Additional guidance

  • Level 3 responses must cover both the role of RAM in the stored program concept and the speed difference between RAM and secondary storage, with a reason such as the CPU having to wait for instructions.
  • Answers that make only basic, independent points, such as what RAM is, that a program is copied into RAM when it is opened, or that RAM is faster than a hard drive, without linking them to explain why the CPU would have to wait for instructions, are limited to Level 1.
  • Do not accept statements that RAM is permanent storage, that RAM replaces secondary storage, or that secondary storage is read-only.
Example answers and how they were marked
Full marks6/6

The computers need RAM because of the von Neumann stored program concept, in which the instructions of a program and the data it uses are both held in main memory. When a student opens a program on one of the new computers, the operating system copies it from the hard drive into RAM. The CPU then fetches each instruction from RAM in the fetch-decode-execute cycle, so the program must be in RAM before it can be run. The CPU cannot execute a program directly from secondary storage because a hard disk drive is much slower than RAM. It has moving parts and a much lower transfer rate, so the CPU would often have nothing to do while it waited for the next instruction. RAM is fast electronic memory that the CPU can read directly, which is why 16 GB of RAM lets the school run several programs at once and still keep the CPU working at full speed.

Why: Comprehensive understanding: the stored program concept is explained (instructions and data held in main memory), the program being opened is linked to it, and the speed difference is developed with the reason that the CPU would wait for instructions, all applied to the school's computers. Level 3.

Some marks2/6

RAM is the main memory of the computer. It stores the programs and data that are being used at the moment. When you open a program it is copied into RAM, and the CPU fetches instructions from RAM. RAM is faster than the hard drive, so a program runs better from RAM. Having 16 GB means the school can have more programs open at once.

Why: Basic, independent points only: what RAM is, that a program is copied into RAM when it is opened, that the CPU fetches instructions from RAM, and that RAM is faster than a hard drive. None is linked to the stored program concept or developed to explain why the CPU would have to wait for instructions, so Level 1, 2 marks.

No marks0/6

RAM is the permanent storage inside the computer, like a hard drive. The school needs 16 GB of RAM so that all the students' files can be saved permanently. When a program is opened, it is copied from RAM to the CPU. The CPU cannot execute from secondary storage because secondary storage is read-only.

Why: No creditworthy points. RAM is described as permanent storage, files are said to be saved permanently in RAM, a program is said to be copied from RAM to the CPU, and secondary storage is said to be read-only. All are the misconceptions listed in the Do not accept guidance, so Level 0.

14Discuss6 marks

An employee is writing a report on a laptop. There is a power cut and the laptop turns off. When power is restored, the employee cannot find the report file.

Discuss the role of RAM in this situation.

Your answer should include:

  • why the report was lost
  • the difference between RAM and secondary storage
  • how the employee could prevent this in future.
[6 marks]
Mark scheme

Indicative content

Why the report was lost

  • The report was being created and edited in RAM, which is volatile.
  • Volatile memory loses its contents when the power supply is removed.
  • The power cut removed the power, so the data in RAM was lost.
  • The report had not been saved to secondary storage before the power cut.
  • Only data that had been saved to secondary storage would remain after the power cut.

The difference between RAM and secondary storage

  • RAM is volatile and holds data temporarily while the computer is on.
  • Secondary storage is non-volatile and keeps data permanently when the power is off.
  • RAM is directly accessible by the CPU and is much faster than secondary storage.
  • Secondary storage has a larger capacity and is cheaper per gigabyte than RAM.
  • RAM holds the programs and data currently in use; secondary storage holds files for long-term storage.

How the employee could prevent this in future

  • The employee should save the report regularly to secondary storage, such as the hard drive or a USB flash drive.
  • The employee could enable autosave or autosave/recovery features in the word processor.
  • The employee could use cloud storage that saves changes automatically.
  • The employee could use an uninterruptible power supply (UPS) or battery to keep the laptop on during a power cut.
  • The employee should not rely on RAM to keep work permanently.

Levels

  • Level 0 (0 marks): No rewardable content.
  • Level 1 (1–2 marks): Basic, independent points are made, showing elements of understanding of key concepts/principles of computer science. (AO1) The discussion will contain basic information with little linkage between points made or application to the context. (AO2)
  • Level 2 (3–4 marks): Demonstrates adequate understanding of key concepts/principles of computer science. (AO1) The discussion shows some linkages and lines of reasoning with some structure and application to the context. (AO2)
  • Level 3 (5–6 marks): Demonstrates comprehensive understanding of key concepts/principles of computer science to support the discussion being presented. (AO1) The discussion is well developed, with sustained lines of reasoning that are coherent and logically structured, and which clearly apply to the context. (AO2)

Additional guidance

  • Level 3 responses must explain that RAM is volatile and contrast this with non-volatile secondary storage.
  • Do not award marks for stating that the report was lost from secondary storage unless it had been saved there.
Example answers and how they were marked
Full marks6/6

The report was lost because it was being held in RAM, which is volatile memory. RAM only keeps its contents while the computer has power. When the power cut happened, the laptop turned off and everything in RAM was lost, including the unsaved report. RAM is different from secondary storage because secondary storage is non-volatile and keeps data permanently even when the power is off. For example, the hard drive would still contain the report if it had been saved. RAM is also much faster than secondary storage and is used for programs and data currently in use. To prevent this in future, the employee should save the report regularly to the hard drive or use autosave. They could also save to cloud storage, which saves automatically, or use a UPS to keep the laptop running during a power cut.

Why: Comprehensive understanding of RAM volatility, clear contrast with non-volatile secondary storage, and well-linked prevention methods applied to the employee's situation.

Some marks4/6

The report was lost because it was in RAM. RAM is temporary memory and it loses data when the power goes off. Secondary storage is permanent, so if the employee had saved the report it would still be there. RAM is faster than secondary storage. To prevent it, they should save their work.

Why: Adequate understanding shown through the volatility of RAM and the difference from permanent secondary storage, but the answer lacks detail about why the report was specifically lost and gives only a brief prevention method.

No marks0/6

The report was lost from the hard drive because the power cut erased it. RAM is permanent storage, so the report should have been saved there. The employee should buy more RAM to stop this happening again.

Why: No creditworthy points. The answer wrongly says the report was lost from the hard drive and that RAM is permanent storage, and it suggests more RAM will prevent power-loss data loss. These are misconceptions.

15Discuss6 marks

A video production company edits films for its clients. The editors use computers to work on 4K video, and they say the computers have become slow. One editor wants to replace the CPU, but a colleague thinks adding more RAM would be better.

Discuss whether adding more RAM will improve the performance of the computers used to edit 4K video. (6)

Your answer should include:

  • how RAM is used when editing video
  • why too little RAM causes poor performance
  • why adding more RAM may not always improve performance.
[6 marks]
Mark scheme

Indicative content

How RAM is used when editing video

  • The editing software and the video project being worked on are loaded into RAM so that the CPU can access them quickly.
  • RAM holds the frames, effects and timeline data that the CPU is processing as part of the fetch-decode-execute cycle.
  • The CPU fetches the instructions and the video data it needs from RAM, which is much faster than fetching them from secondary storage.
  • Having more RAM means that more of the 4K video project and its effects can be held in memory at the same time.
  • RAM is also used by the operating system and any other open software, so not all of the RAM is available to the editing software.

Why too little RAM causes poor performance

  • If there is not enough RAM, the operating system uses virtual memory on secondary storage for data that will not fit in RAM.
  • Virtual memory is much slower than RAM, so the editor waits longer for 4K video to load and for effects to be applied.
  • Data has to be swapped between RAM and virtual memory, which is extra work that slows the computer down.
  • The editing software may freeze or close if it runs out of memory while working on the 4K video.
  • Playback of the 4K video is not smooth because the frames cannot all be held in RAM ready for the CPU.

Why adding more RAM may not always improve performance

  • If the computer already has enough RAM for the editing software, the extra RAM will not be used and performance will hardly change.
  • The clock speed and the number of cores of the CPU decide how quickly instructions are processed, so a slow CPU will still limit how quickly the video is edited.
  • A slow secondary storage drive will still limit how quickly the 4K video files can be loaded into RAM.
  • Adding RAM only improves performance if a shortage of RAM was the reason for the computer being slow.

Levels

  • Level 0 (0 marks): No rewardable content.
  • Level 1 (1–2 marks): Basic, independent points are made, showing elements of understanding of key concepts/principles of computer science. (AO1) The discussion will contain basic information with little linkage between points made or application to the context. (AO2)
  • Level 2 (3–4 marks): Demonstrates adequate understanding of key concepts/principles of computer science. (AO1) The discussion shows some linkages and lines of reasoning with some structure and application to the context. (AO2)
  • Level 3 (5–6 marks): Demonstrates comprehensive understanding of key concepts/principles of computer science to support the discussion being presented. (AO1) The discussion is well developed, with sustained lines of reasoning that are coherent and logically structured, and which clearly apply to the context. (AO2)

Additional guidance

  • Level 3 responses must explain how RAM is used when editing video and give a developed reason why adding more RAM may not always improve performance; responses that only explain how RAM is used, or only why too little RAM causes poor performance, are limited to Level 2.
  • Accept 'paging' or 'swap file' as equivalent to virtual memory, but do not accept 'cache' or 'ROM'; do not credit statements that adding RAM increases the CPU clock speed or makes the CPU faster, or that 'RAM is volatile' explains poor performance, as these are not linked to the question asked.
Example answers and how they were marked
Full marks6/6

RAM holds the editing software and the 4K video project that is being worked on, so the CPU can fetch the frames and the effects it needs much faster than from the hard drive. If there is not enough RAM, the operating system has to use virtual memory on secondary storage instead, and this is much slower than RAM, so the editors have to wait for video to load and the playback is not smooth. Adding more RAM can help because more of the 4K project and its effects can be held in memory at once. However, it will not always improve performance. If the computer already has enough RAM the extra memory will not be used, and if the CPU has a low clock speed or too few cores it will still take longer to process each frame. A slow hard drive will also limit how quickly the 4K files can be loaded into RAM, so adding RAM only solves the problem if the computer was short of memory.

Why: Level 3: explains how RAM is used when editing video and applies it to the frames and effects (AO1/AO2), gives a developed reason for poor performance using virtual memory and its slowness, and gives developed reasons why extra RAM may not help, namely a CPU bottleneck (clock speed and cores) and a slow drive, applied to the company's 4K editing.

Some marks2/6

RAM is used to store the video while it is being edited. If you don't have enough RAM, the computer will be slow because it has to use the hard drive instead. Adding more RAM will make the computer faster because it can store more video. The CPU also matters because it does the processing.

Why: Level 1, top end (2 marks). A basic relevant use of RAM, storing the video being edited, and a basic point that the hard drive is used when RAM is short; the extra RAM point is asserted with no reasoning and the single CPU statement is not linked to why adding RAM may not help, so there is little development and the answer does not reach Level 2.

No marks0/6

RAM is the same as the CPU, so adding more RAM makes the CPU faster. The video editor should add more RAM to increase the clock speed. 4K video is slow because RAM is volatile.

Why: No creditworthy content: treating RAM as the CPU and saying adding RAM increases the clock speed are the misconceptions named in the guidance, and 'RAM is volatile' is not linked to performance, so it earns nothing.

Keep practising Primary Memory

More exam questions on 3.1 Hardware

Teachers: print these as a worksheet with the mark schemes at the end, and sign your school up to set your classes activities on Primary Memory.

Fetch Decode Explain isn't affiliated with or endorsed by Pearson Edexcel.