Homeβ€ΊStudy Resourcesβ€ΊComputer Scienceβ€Ί
What is the difference between RAM and ROM?
Computer Science
GCSE

What is the difference between RAM and ROM?

RAM holds the programs and data in use. It is volatile, so its contents are lost when the power is off. ROM stores the boot program. It is read-only and non-volatile, so its contents stay when the power is off. Example: A student is typing an essay when the power cuts out. Explain what happens to their work and how the computer starts again. The open essay is stored in RAM while they type. RAM is volatile, so any unsaved work is lost when the power goes. On restart, the boot program runs from ROM. Answer: Unsaved work in RAM is lost, but the computer still starts because the boot program is in ROM

Quick answer: RAM is volatile and holds programs and data in use. ROM is non-volatile and read-only. Both are needed in a computer.

What the specification expects

Memory is covered in 3.4.5 Systems architecture of the AQA GCSE Computer Science specification (8525). You need to know:

  • understand the different types of memory within a computer: RAM, ROM, cache and register
  • know what the different types of memory are used for and why they are required
  • understand the differences between RAM and ROM, and explain the terms volatile and non-volatile
  • main memory is any form of memory that is directly accessible by the CPU (except for cache and registers)
  • secondary storage is any non-volatile storage mechanism not directly accessible by the CPU; understand why secondary storage is required

Method

  1. Name the type of memory.
  2. Say whether it is volatile or non-volatile.
  3. State what it is used for.
  4. Link the answer to the scenario.

Worked example 1: a power cut

A student is typing an essay when the power cuts out. Explain what happens to their work and how the computer starts again.

  1. The open essay is stored in RAM while they type.
  2. RAM is volatile, so any unsaved work is lost when the power goes.
  3. When the computer is switched back on, the boot program runs from ROM.
  4. ROM is non-volatile, so the boot program was not lost.

Answer: Unsaved work in RAM is lost, but the computer still starts because the boot program is in ROM.

Worked example 2: main memory or secondary storage

State whether RAM and an SSD are main memory or secondary storage.

  1. Main memory is directly accessible by the CPU, excluding cache and registers.
  2. RAM is directly accessible by the CPU, so it is main memory.
  3. An SSD is non-volatile storage not directly accessible by the CPU, so it is secondary storage.

Answer: RAM is main memory and an SSD is secondary storage.

Worked example 3: volatile or non-volatile

State whether RAM and ROM are volatile or non-volatile.

  1. Volatile memory loses its contents when the power is off.
  2. RAM is volatile.
  3. ROM is non-volatile, so its contents stay when the power is off.

Answer: RAM is volatile and ROM is non-volatile.

Worked example 4: why secondary storage

Explain why a computer needs secondary storage.

  1. The specification says to understand why secondary storage is required.
  2. RAM is volatile, so it loses its contents when the power is off.
  3. Secondary storage is non-volatile, so files and programs are kept when the computer is switched off.

Answer: Secondary storage keeps data when the power is off, which RAM cannot do.

Common mistakes

  • Saying ROM can be freely written to. ROM is read-only.
  • Calling secondary storage main memory.
  • Forgetting to link volatile memory to loss of data when the power is off.

FAQs

Is cache the same as RAM?

No. The specification lists RAM, ROM, cache and register as different types of memory, and main memory excludes cache and registers.

What does volatile mean?

Volatile memory loses its contents when the power is off.

Want one-to-one help? Find an online Computer Science tutor with ExpertTutor.

Reviewed by

Want one-to-one support?

One-to-one online tuition can help you build confidence in your subject. Find a tutor who teaches your course.

Find a Tutor

Learn face to face in Glasgow

Prefer in-person lessons? Visit the ExpertTutor Glasgow Southside centre.

See the centre