GCSE Computer Science · public explanation

Computer Memory

Understand RAM, ROM and cache for GCSE Computer Science. Compare their roles, what happens when power is lost, and the requirements for OCR and AQA.

Read the explanation and worked examples, then choose your exam board to continue with activities and practice in your account.

OCR J277On the specificationOCR J277 1.2.1

Explain the need for primary storage and compare RAM and ROM; cache is also covered in CPU performance.

AQA 8525 (2027+)On the specificationAQA 8525 (2027+) 3.4.5

Know RAM, ROM, cache and registers; AQA treats main memory as CPU-accessible memory excluding cache and registers.

An open document and its saved copy are different

Suppose Maya opens a saved photograph in an editor. The active editor instructions and working image data are loaded into random access memory (RAM), where the central processing unit (CPU), or processor, can use them. RAM is working memory, not the long-term home of every saved file.

If Maya changes the image without saving, the working copy differs from the saved copy. RAM is volatile: its contents are lost when power is removed. The saved file remains on non-volatile secondary storage, but it does not gain those unsaved changes automatically.

Why ROM and cache have different jobs

Read-only memory (ROM) is non-volatile memory holding instructions such as startup firmware. Those instructions remain available while power is off, so the computer has a starting point when switched on. The operating system, the software that manages the computer's resources, can then be loaded from secondary storage into RAM.

Cache is small, fast memory in or close to the CPU. It holds copies of frequently or recently needed instructions and data. If Maya's editing operation needs a cached item again, that copy can be supplied faster than a new RAM access. Cache is neither her permanent photo archive nor a replacement for all RAM.

MemoryMain role in this exampleAfter power is removed
RAMActive editor instructions and working image dataWorking contents are lost
ROMRetained startup firmwareStored instructions remain
CacheReusable copies close to the CPUOrdinary CPU-cache contents are lost

AQA focus

AQA: keep main memory separate from cache and registers

AQA uses main memory for memory directly accessible by the CPU except cache and registers. RAM and ROM belong to that main-memory category. Cache and registers still count as memory types you need to understand, but not as main memory under this definition.

A register is a small storage location inside the CPU that holds a value currently needed by processing, such as an address, an instruction or a result. It is temporary processor state, not permanent file storage. AQA does not require recall of specific register names.

OCR focus

OCR: distinguish primary storage from secondary storage

OCR's primary-storage topic covers why memory is needed, RAM and ROM, cache and virtual memory. Explain each role separately instead of treating every memory term as interchangeable.

Virtual memory uses a reserved area of secondary storage when RAM is insufficient. Its place in the primary-storage topic does not turn the reserved area into RAM or a new memory chip. The Virtual Memory topic follows the transfer out and back in detail.

Continue with your exam board

The course combines lesson videos, interactive activities, topic questions and original exam mocks. Sign in to use the learning tools and save your progress; your account’s course access applies.

Independent learning resources. Not endorsed by AQA or OCR. These public introductions complement the full course and the official specification.