Memory and Storage (GCSE & IGCSE Computer Science): Revision Notes and Worksheets

GCSE and IGCSE Computer Science memory and storage: RAM, ROM, virtual memory, secondary storage, cloud, data units and file sizes, with worksheets.

Diagram of primary and secondary storage: the CPU with cache, then RAM and ROM as primary storage, then secondary storage (magnetic, optical, solid state) with an area used as virtual memory.

When you switch on a computer, something has to tell it how to start, and while you work, your programs have to sit somewhere the CPU can reach them fast. This guide covers GCSE and IGCSE memory and storage for OCR J277 and Cambridge IGCSE 0478: RAM and ROM, virtual memory, secondary storage and its three types, choosing storage, cloud storage, units of data and calculating file sizes. Each part has a worked example and a worksheet for your exam board.

What does memory and storage cover for OCR and Cambridge?

Memory and storage is about where a computer keeps its data and instructions, both while it is running and when it is switched off, and how that data is measured. Both boards ask about RAM and ROM, virtual memory, why secondary storage is needed, magnetic, optical and solid state storage, cloud storage, the units of data storage and file-size calculations. They differ in the details: the units (OCR counts in 1,000s, Cambridge in 1,024s), which file sizes you calculate, and whether you need to know how each storage type works inside. The table below is based on the OCR J277 specification (version 3.1) and the Cambridge IGCSE 0478 syllabus for 2026-2028, as checked in November 2026.

Part

Topic

OCR J277

Cambridge 0478

B1

Primary storage: RAM and ROM

1.2.1

3.3.1

B2

Virtual memory

1.2.1

3.3.4

B3

Why computers need secondary storage

1.2.2

3.3.2

B4

Magnetic, optical and solid state storage (how they work IGCSE only)

1.2.2

3.3.3

B5

Choosing storage (OCR-led)

1.2.2

no named point (supports 3.3.3, 3.3.6)

B6

Cloud storage (software and processing GCSE only)

1.3.1

3.3.5, 3.3.6

B7

Units of data storage

1.2.3

1.3.1

B8

Calculating file sizes (text files GCSE only)

1.2.3

1.3.2

B1: What are RAM and ROM?

Primary storage, also called main memory, is the storage the CPU accesses directly. It holds the data and instructions in use right now. The CPU works very fast, so it needs fast access to the programs and data it is using.

RAM (random access memory) holds the operating system, programs and data that are currently in use. It is read and write, and it is volatile: its contents are lost when the power is switched off. ROM (read only memory) is non-volatile, so it keeps its contents with no power. It stores the start-up instructions (sometimes called the BIOS), which load the operating system from storage into RAM. Its contents cannot normally be changed. A computer needs both: ROM keeps the start-up instructions safe with the power off, and RAM gives the CPU fast working memory that changes all the time.

GCSE only: OCR J277 also counts cache as primary storage. (Cambridge 0478 names only RAM and ROM as primary storage, and covers cache under the CPU in section 3.1.) Cache is a small amount of very fast memory inside or very close to the CPU that holds frequently used data and instructions, so the CPU fetches from RAM less often. It is the smallest and fastest. (Registers are not given as examples of primary storage.)

Worked example: RAM or ROM in a smart TV?

The deciding question: does it have to survive the power going off and never change (ROM), or is it in use right now and changing (RAM)?

  • Step 1: the instructions the TV runs as soon as the power button is pressed must be there with no power and never change, so they are in ROM.

  • Step 2: the streaming app and the part of the film that is loading are in use and changing, so they are in RAM.

  • Step 3: the menu you have just opened is not ROM just because it is part of the TV. It is in use and changes as you scroll, so it is in RAM.

Practise B1: OCR questions · OCR mark scheme · Cambridge questions · Cambridge mark scheme

B2: What is virtual memory?

When RAM is full, the operating system sets aside part of secondary storage (the hard disk drive or solid state drive) and uses it as if it were extra RAM. That area is virtual memory. Data that is not needed right now is moved out of RAM into virtual memory, which frees space in RAM so another program can be loaded. When the moved data is needed again, it is moved back into RAM, because the CPU can only use data that is in RAM.

The catch is speed. Secondary storage is much slower to access than RAM, and data must be moved back into RAM before the CPU can use it. If RAM is very full, the computer keeps swapping data back and forth and slows right down. Adding more RAM means less virtual memory is needed, so there is less swapping.

IGCSE only: Cambridge 0478 describes the data moved as pages: pages of data are transferred between RAM and virtual memory when needed. OCR J277 does not need the word "pages".

Worked example: opening one app too many

A laptop has room for four things in RAM: the operating system, a word processor, a spreadsheet and a web browser. RAM is full and the user opens a drawing app.

  • Step 1: does anything need to move? Yes: RAM is full, so the drawing app will not fit.

  • Step 2: what moves? Not the operating system: data not in use right now. The spreadsheet has not been touched for an hour, so its data moves to virtual memory.

  • Step 3: the drawing app now loads into RAM. When the user clicks back on the spreadsheet, its data must be moved back into RAM first, and something else not in use moves out.

Practise B2: OCR questions · OCR mark scheme · Cambridge questions · Cambridge mark scheme

B3: Why do computers need secondary storage?

Secondary storage is non-volatile storage that keeps files, programs and the operating system long term, when the power is off. Computers need it for two reasons: RAM is volatile, so everything in it is lost when the power goes, and RAM is too small to hold all your files and programs anyway. Secondary storage gives a large capacity at a low cost per gigabyte compared with primary storage.

The CPU does not access secondary storage directly: programs and data are loaded into RAM first. Examples include hard disk drives, solid state drives, USB flash drives, SD cards, and CD, DVD and Blu-ray discs. This part is the same for both boards.

Worked example: following a photo

  • Step 1: before the photo is opened, it is kept on the laptop's solid state drive (secondary storage), so it survives the laptop being switched off.

  • Step 2: when it is opened, a copy is loaded into RAM, because the CPU can only work on it there.

  • Step 3: the user crops it and saves, so the new version is written back to the drive. If the battery dies before saving, the crop is lost, because it was only in volatile RAM.

Practise B3: OCR questions · OCR mark scheme · Cambridge questions · Cambridge mark scheme

B4: What are magnetic, optical and solid state storage?

Every secondary storage device is one of three types, sorted by how the data is stored. Magnetic storage stores data magnetically: the hard disk drive (HDD), with spinning magnetic disks, and magnetic tape for large backups. Optical storage uses a laser to read (and sometimes write) data: CDs, DVDs and Blu-ray discs. Solid state storage stores data electronically in flash memory, with no moving parts: the solid state drive (SSD), SD cards and USB flash drives (memory sticks).

The device reads and writes the data; the medium holds it. A DVD drive is the device and the DVD disc is the medium. In a hard disk drive the disks are sealed inside, so the device and medium come together.

GCSE only: OCR J277 needs the characteristics and differences of each type, but says you do not need the component parts.

IGCSE only: Cambridge 0478 asks you to describe how each type works:

  1. Magnetic: platters with a magnetic coating spin; each is divided into tracks and sectors. A read-write head uses an electromagnet to magnetise tiny areas to write data, and reads data by sensing them.

  2. Optical: a laser creates pits and lands on the disc surface. To read, a laser shines on the spinning disc; pits and lands reflect the light differently, and the changes are read as data.

  3. Solid state (flash memory): uses NAND or NOR technology. Transistors act as control gates and floating gates; electrons trapped in the floating gate stay there with no power, and whether they are trapped stores each bit.

Worked example: sorting four devices

The deciding questions: does it use a laser, does it store data magnetically, or is it electronic with no moving parts?

  • Step 1: a Blu-ray disc is read by a laser, so it is optical.

  • Step 2: an SD card in a camera is electronic with no moving parts, so it is solid state.

  • Step 3: a hard disk drive is inside the computer, but that does not make it solid state. It has spinning magnetic disks, so it is magnetic.

  • Step 4: a USB memory stick is solid state. Write "USB memory stick", not just "USB", which is the port.

Practise B4: OCR questions · OCR mark scheme · Cambridge questions · Cambridge mark scheme

B5: How do you choose the right storage?

Exam questions often describe a situation and ask which storage suits it. You compare devices using six characteristics:

Characteristic

Meaning

Usually best

Capacity

How much data it holds

Magnetic (high capacity cheaply)

Speed

How fast data is read and written

Solid state, then magnetic; optical slowest

Portability

How easy it is to carry

Solid state (small, light)

Durability

How well it survives knocks, drops and heat

Solid state (no moving parts)

Reliability

How consistently it stores and returns data correctly over time

Depends on the device and how it is used

Cost

Price per gigabyte, not per device

Magnetic, and optical discs

Both boards: OCR J277 names these six characteristics and expects you to apply them to scenarios. Cambridge 0478 has no separate point for them, but the same ideas help when you compare storage types or compare cloud with local storage.

Worked example: storage for a nurse's laptop

A nurse carries a work laptop between home, the hospital and the bus every day.

  • Step 1, what matters most? It is carried and bumped all day, so durability: solid state has no moving parts, so a knock will not damage it.

  • Step 2: it must be light and fit in a bag: solid state is small and light (portability).

  • Step 3: files should open quickly: solid state has the fastest read and write speed. So choose solid state, with every reason linked to the nurse. (For a company archive of hundreds of terabytes that never moves, magnetic would be the usual choice, for its capacity and low cost per gigabyte.)

Practise B5: OCR questions · OCR mark scheme · Cambridge questions · Cambridge mark scheme

B6: What is cloud storage?

Cloud storage means data is stored on remote servers owned by a provider and accessed over the internet. It is real hardware: physical servers and storage devices in the provider's data centres. Local storage keeps data on your own device or on a drive you own.

Cloud storage lets you access files from anywhere, on any device with an internet connection, makes sharing easy, lets you get more space when you need it, and the provider usually handles backups and maintenance. But you need an internet connection, the security and privacy of your data are in the provider's hands, there is usually an ongoing cost, and you have less control over your data. Local storage works offline and is under your control, but its capacity is limited and you must make your own backups.

Both boards: you need to explain the advantages and disadvantages of the cloud compared with local storage, in context.

GCSE only: OCR J277 treats the Cloud as any remote service provision over the internet: storage, software and processing. An online document editor is software in the cloud; a powerful remote server can do processing for you.

Worked example: cloud or local?

  • Step 1: four musicians in different towns want to share recordings. They need to share files from different places, so cloud storage suits them. Drawback to mention: they each need an internet connection to upload and download.

  • Step 2: a researcher works for months at a field station with no internet. Cloud storage could not be reached at all, so local storage suits them, with a separate backup copy.

Practise B6: OCR questions · OCR mark scheme · Cambridge questions · Cambridge mark scheme

B7: What are the units of data storage?

Computers store everything in binary. A bit is one binary digit (0 or 1), the smallest unit. A nibble is 4 bits and a byte is 8 bits. Then the units grow in fixed steps, and here the boards differ.

GCSE only: OCR J277 uses kilobyte (KB) = 1,000 bytes, megabyte (MB) = 1,000 KB, gigabyte (GB) = 1,000 MB, terabyte (TB) = 1,000 GB and petabyte (PB) = 1,000 TB. OCR also accepts 1,024 in conversions and calculations.

IGCSE only: Cambridge 0478 uses kibibyte (KiB) = 1,024 bytes, mebibyte (MiB) = 1,024 KiB, gibibyte (GiB) = 1,024 MiB, tebibyte (TiB), pebibyte (PiB) and exbibyte (EiB), each 1,024 of the one before. Calculations must use 1,024, not 1,000, and answers must be in the unit the question asks for.

On both ladders: to go to a bigger unit, divide; to go to a smaller unit, multiply. Bits to bytes is always 8.

Worked example: converting on each ladder

  • Step 1 (OCR): 24,000 bits to kilobytes. Bytes are bigger, so divide by 8: 3,000 bytes. Divide by 1,000: 3 KB. Check: a bigger unit gives a smaller number.

  • Step 2 (OCR): 3 MB to bytes. Smaller unit, so multiply: 3 x 1,000 x 1,000 = 3,000,000 bytes.

  • Step 3 (IGCSE): 4 MiB to KiB. Smaller unit, so multiply: 4 x 1,024 = 4,096 KiB.

Practise B7: OCR questions · OCR mark scheme · Cambridge questions · Cambridge mark scheme

B8: How do you calculate file sizes?

An image is made of pixels, and the number of bits stored for each pixel is the colour depth. Sound is sampled: the sample rate (in hertz) is the number of samples per second, and the number of bits for each sample is the bit depth. Both formulas give an answer in bits: divide by 8 for bytes, then divide for each bigger unit.

  • Image file size = colour depth x image width (px) x image height (px)

  • Sound file size = sample rate (Hz) x duration (s) x bit depth

The image, sound and text file-size formulas, with the unit steps: bits, divide by 8 for bytes, then divide by 1,000 (OCR) or 1,024 (Cambridge).

IGCSE only: Cambridge calls bit depth the sample resolution, gives the information as image resolution and colour depth, or sample rate, resolution and length of track, and divides by 1,024.

GCSE only: OCR J277 also asks for text file size = bits per character x number of characters, and the storage needed for a set of files. OCR allows you to add an amount for metadata (data about the file) and accepts 1,024.

Worked example: an image and a sound for OCR (KB)

  • Image: 300 x 200 pixels, colour depth 8 bits. 300 x 200 = 60,000 pixels; x 8 = 480,000 bits; ÷ 8 = 60,000 bytes; ÷ 1,000 = 60 KB.

  • Sound: 8,000 Hz for 10 seconds at a bit depth of 8. 8,000 x 10 = 80,000 samples; x 8 = 640,000 bits; ÷ 8 = 80,000 bytes; ÷ 1,000 = 80 KB.

  • Text (GCSE only): 500 characters at 8 bits per character = 4,000 bits; ÷ 8 = 500 bytes.

  • Set of files (GCSE only): how many 4 MB photos fit on a 16 GB card? 16 GB = 16,000 MB; 16,000 ÷ 4 = 4,000 photos.

Worked example: an image and a sound for Cambridge (KiB)

  • Image: 128 x 64 pixels, colour depth 8 bits. 128 x 64 = 8,192 pixels; x 8 = 65,536 bits; ÷ 8 = 8,192 bytes; ÷ 1,024 = 8 KiB.

  • Sound: sample rate 16,384 Hz, sample resolution 16 bits, length 4 seconds. 16,384 x 16 x 4 = 1,048,576 bits; ÷ 8 = 131,072 bytes; ÷ 1,024 = 128 KiB.

Practise B8: OCR questions · OCR mark scheme · Cambridge questions · Cambridge mark scheme

Common exam mistakes in memory and storage

  • Writing "RAM is volatile" on its own as a difference: say both sides, RAM is volatile, ROM is non-volatile. And RAM holds only the programs and data currently in use, not every file.

  • Saying secondary storage is used "when primary storage is full": that is virtual memory, one use of it. Secondary storage keeps data long term.

  • Writing "virtual memory is slower" without saying why: secondary storage is slower to access than RAM, and data must be moved back into RAM before the CPU can use it.

  • Naming a type (magnetic) when a device (hard disk drive) was asked, or giving RAM, ROM or registers as secondary storage. (IGCSE) Describing a hard disk drive with lasers.

  • Saying solid state is "faster" without saying faster at what (reading and writing data), or that it lasts forever.

  • Saying the cloud is simply "less secure": the drawback is that the user does not control the security. And an internet connection is not the same as Wi-Fi.

  • (IGCSE) Using 1,000 instead of 1,024 for a kibibyte, or giving the answer in the wrong unit. In file sizes, forgetting to divide by 8 before dividing by 1,000 or 1,024.

Quick recap

  • B1: primary storage is accessed directly by the CPU; RAM is volatile, read and write, holds what is in use; ROM is non-volatile, read only, holds the start-up instructions; for OCR (GCSE only), cache is primary storage too.

  • B2: virtual memory is part of secondary storage used as extra RAM when RAM is full; data moves out and back (pages, IGCSE); it is slower, so more RAM helps.

  • B3: secondary storage is non-volatile and large; the CPU cannot access it directly.

  • B4: magnetic (HDD, tape), optical (CD, DVD, Blu-ray), solid state (SSD, SD card, USB memory stick); how each works for IGCSE only.

  • B5: capacity, speed, portability, durability, reliability, cost per gigabyte, linked to the scenario.

  • B6: cloud storage is on a provider's remote servers over the internet; for OCR the Cloud also means remote software and processing.

  • B7: bit, nibble (4 bits), byte (8 bits); OCR KB to PB in 1,000s; Cambridge KiB to EiB in 1,024s.

  • B8: image = colour depth x width x height; sound = sample rate x duration x bit depth; text (GCSE only) = bits per character x characters; divide by 8, then by 1,000 or 1,024.

Download the whole module

Frequently asked questions

What is the difference between RAM and ROM?

RAM is volatile, read and write, and holds the operating system, programs and data currently in use. ROM is non-volatile, read only, and holds the start-up instructions the computer needs when it is switched on.

Is a kilobyte 1,000 or 1,024 bytes for GCSE Computer Science?

It depends on your board. OCR J277 uses 1 KB = 1,000 bytes and also accepts 1,024. Cambridge IGCSE 0478 uses the kibibyte, 1 KiB = 1,024 bytes, and calculations must use 1,024.

Why does virtual memory slow a computer down?

Virtual memory is on secondary storage, which is much slower to access than RAM, and data in it must be moved back into RAM before the CPU can use it. When RAM is very full, data is swapped back and forth often, which wastes time.

Do I need to know how a hard disk drive works?

Only for Cambridge IGCSE. Cambridge 0478 asks you to describe platters, tracks and sectors, and electromagnets, as well as how optical and solid state storage work. OCR J277 needs the characteristics of each type but not their component parts.

How do you calculate the file size of a sound?

Multiply the sample rate by the duration in seconds and by the bit depth to get the size in bits. Divide by 8 for bytes, then by 1,000 for kilobytes (OCR) or by 1,024 for kibibytes (Cambridge).

Previous module: Systems architecture revision notes. Next module: Data representation revision notes.

More help: browse the GCSE Computer Science revision hub.