Skip to main content
SingaporeComputer ScienceSyllabus dot point

What is the difference between RAM, ROM and secondary storage, and why does a computer need each?

Distinguish RAM, ROM and secondary storage, explaining volatility and the purpose of each in a computer

A focused answer to the O-Level Computing point on memory and storage. The difference between RAM and ROM, what volatile means, the role of secondary storage, and why a computer needs all three.

Generated by Claude Opus 4.86 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this dot point is asking
  2. The answer
  3. Examples in context
  4. Try this

What this dot point is asking

SEAB wants you to distinguish RAM, ROM and secondary storage, explaining what volatile means and the purpose of each. The central idea is that a computer needs fast temporary memory to work in (RAM), a small permanent store for start-up instructions (ROM), and a large permanent store for files and programs (secondary storage), because no single type does all three jobs.

The answer

RAM: Random Access Memory

RAM is the computer's main memory: it holds the programs and data the computer is currently using, so the CPU can read and write them quickly. When you open a program, it is loaded from storage into RAM to run.

RAM is volatile, meaning it loses its contents when the power is turned off. It is also limited in size and more expensive per byte than storage.

ROM: Read Only Memory

ROM is memory that can normally only be read, not written to. It is non-volatile, so it keeps its contents without power. ROM typically stores the start-up instructions (the boot program or firmware) the computer runs first when switched on, before the operating system loads.

Secondary storage

Secondary storage is the large, permanent store for files and programs, such as a hard disk drive (HDD) or solid state drive (SSD). It is non-volatile, so data stays when the power is off. It is much larger and cheaper per byte than RAM, but slower for the CPU to access directly, which is why data is loaded into RAM to be used.

Why a computer needs all three

Type Volatile? Purpose
RAM yes fast temporary memory for running programs and data
ROM no permanent start-up instructions
Secondary storage no large permanent store for files and programs

The CPU works with RAM for speed; ROM gets the computer started; secondary storage keeps everything safely when the power is off.

Volatile versus non-volatile

  • Volatile: loses data when power is removed (RAM).
  • Non-volatile: keeps data when power is removed (ROM, secondary storage).

Examples in context

Example 1. Losing unsaved work. A student writing an essay loses power before saving, and the work is gone, because the document was only in volatile RAM. The lesson is to save often, which writes the file to non-volatile secondary storage.

Example 2. Starting a phone. When a phone is switched on, it runs start-up code from ROM, then loads the operating system and apps from its storage into RAM. The photos and apps stay in storage when the phone is off, but what is open in RAM is reloaded each time.

Try this

Q1. State what is meant by volatile memory. [2 marks]

  • Cue. Memory that loses its contents when the power is turned off (such as RAM).

Q2. Give one example of what is stored in ROM. [1 mark]

  • Cue. The start-up (boot) instructions or firmware the computer runs when switched on.

Q3. Explain why a computer needs secondary storage as well as RAM. [2 marks]

  • Cue. RAM is volatile and limited, so secondary storage keeps files and programs permanently when the power is off.

Exam-style practice questions

Practice questions written in the style of SEAB exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

Original5 marks(a) State what RAM is used for. (b) Explain what is meant by saying RAM is volatile. (c) Explain why a computer also needs secondary storage.
Show worked answer →

(a) RAM (Random Access Memory) is the main memory that holds the programs and data the computer is currently using, so the CPU can access them quickly while they run.

(b) Volatile means RAM loses its contents when the power is turned off. Anything held only in RAM disappears when the computer is shut down.

(c) Because RAM is volatile and limited in size, a computer needs secondary storage (such as a hard disk or SSD) to keep programs and files permanently, even when the power is off. Data is loaded from secondary storage into RAM when needed.

Markers reward RAM holding current programs and data for fast access, volatile meaning contents are lost on power off, and secondary storage giving permanent storage.

Original5 marks(a) State two differences between RAM and ROM. (b) Give an example of what is typically stored in ROM. (c) State whether ROM is volatile or non-volatile, and why this matters.
Show worked answer →

(a) Two differences:

  • RAM can be read from and written to; ROM (Read Only Memory) can normally only be read, not changed.
  • RAM is volatile (loses data on power off); ROM is non-volatile (keeps its data without power).

(b) ROM typically stores the start-up instructions (the boot program or firmware) that the computer runs first when switched on.

(c) ROM is non-volatile: it keeps its contents when the power is off. This matters because the start-up instructions must still be there every time the computer is switched on, even after being fully powered down.

Markers reward two RAM-versus-ROM differences (read/write versus read-only, volatile versus non-volatile), boot/start-up instructions in ROM, and ROM being non-volatile so the start-up code survives power off.

Related dot points