Library Computer Science 0478 Data Storage
O Level · Computer Science 0478

Data Storage

Revise Data Storage for Computer Science 0478 (O Level) — revision notes and instant AI marking. Free to start.

📖 Revision notes · preview
CIE IGCSE · Computer Science 0478

Data Storage

Computers need fast, temporary memory (primary storage) to work with data right now, and slow, permanent memory (secondary storage) to keep it long-term — everything else in this chapter is just different flavours of that trade-off.

Summary — The Whole Chapter in One Look
  • Primary storage (RAM & ROM) sits directly connected to the CPU — small, fast, expensive.
  • RAM is volatile, read/write, holds data & programs currently in use.
  • ROM is non-volatile, read-only, holds the bootstrap/BIOS start-up instructions.
  • Secondary storage (magnetic, solid-state, optical) is non-volatile, large capacity, slower — used for long-term storage.
  • Virtual memory is a "pretend RAM" area on secondary storage, used when RAM is full — it saves the system from crashing but slows it down.
  • Cloud storage is secondary storage that lives on someone else's remote servers, accessed over the internet.
1. Primary Storage

Why does a computer even need it?

Think of the CPU as a chef cooking a meal. The chef can't run to the supermarket (secondary storage) every time they need an ingredient mid-recipe — that's way too slow. Instead, they keep the ingredients they're actively using on the counter right next to them. That counter is primary storage.

Primary storage is directly connected to the CPU, so access times are dramatically faster than secondary storage. This matters because every single instruction the CPU runs goes through the Fetch-Execute Cycle — and if the CPU had to wait for a slow hard disk every single time, your computer would grind to a halt.

The catch: fast memory is expensive to make, so we can only afford a little of it. That's why RAM is sold in gigabytes (16GB, 32GB) while hard drives are sold in terabytes (1000s of GB).

Primary StorageSecondary Storage
Volatile (except ROM)Non-volatile
Small capacityLarge capacity
Very fast accessSlower access
Expensive per GBCheap per GB
Practice Question

Why does a computer need primary storage instead of just using secondary storage for everything?

RAM — Random Access Memory

RAM is the computer's short-term working memory. It holds whatever the CPU is currently using — the open apps, the current file, the parts of the operating system that are running right now.

RAM in 4 words: Volatile · Read/Write · Fast · Large(ish) capacity compared to ROM.

Volatile means: turn the power off, and everything in RAM disappears instantly. That's why you lose unsaved work in a power cut — it was only ever sitting in RAM, never written to a permanent disk.

Before the CPU can use any data or instruction, it has to first be copied from secondary storage into RAM. That's literally what "loading" a program means.

Real-world example A smart TV streaming a show keeps the current video buffer, the volume level, and the running apps in RAM. Turn the TV off and back on, and none of that "current state" survives — it has to reload.
Practice Question

Give two examples of data a smart TV might store in RAM while streaming a video. [2]

ROM — Read Only Memory

ROM is a tiny memory chip on the motherboard that holds the very first instructions the computer needs the moment it's switched on — this is called the bootstrap process, and the instructions it holds are the BIOS (Basic Input Output System).

ROM in 4 words: Non-volatile · Read-only · Fast (but slower than RAM) · Small capacity.

Think of ROM as a recipe card glued permanently to the kitchen wall — you can read it every time you cook, but you can never scribble over it and change it. That permanence is exactly why it's used for start-up instructions: they must survive being switched off, and they should never be accidentally altered.

Golden memory trick RAM = Read/write, loses data when off. ROM = Read-only, keeps data when off. If you remember "RAM changes, ROM doesn't," you'll never mix them up again.
Practice Question

Describe the purpose of ROM in a computer. [2]

2. Secondary Storage

Why does a computer need it?

RAM is volatile and ROM is read-only — neither can hold your files, photos, or installed programs permanently. Secondary storage exists to give the computer long-term, non-volatile storage for everything not currently in active use.

There are three families of secondary storage, and each stores data physically in a completely different way:

  • Magnetic — uses magnetised particles (hard disk drives)
  • Solid-state — uses electronic circuits with no moving parts (SSDs, USB flash drives)
  • Optical — uses a laser to burn/read pits and lands on a disc (CD, DVD, Blu-ray)
How to judge any storage device (6 characteristics) Capacity · Speed · Cost · Portability · Durability · Reliability. Whenever an exam question asks you to compare devices, structure your answer around these six.

Magnetic Storage

A magnetic hard disk contains several metal discs called platters, coated in magnetic material. Each platter is divided into circular tracks, which are further split into wedge-shaped sectors — the point where a track meets a sector is where data actually gets addressed and stored.

The platters spin at high speed (typically 5400–7200 RPM) while a read/write arm, controlled by an actuator, hovers over the surface. Tiny electromagnets in the arm magnetise iron particles on the platter to represent 0s and 1s.

Picture an old record player: the disc spins, and an arm moves across it to read information at different points. Magnetic storage works almost exactly like that, except the "needle" reads/writes magnetic polarity instead of grooves.
AdvantagesDisadvantages
High storage capacityMoving parts can be damaged if dropped
Low cost per gigabyteHeavy & bulky — less portable
Moderate read/write speedProne to mechanical failure
Loud (spinning disks)

Solid-State (Flash Memory)

Solid-state storage has no moving parts at all — instead it stores data electronically in millions of tiny cells, each containing one bit (a 1 or a 0). Each cell contains a transistor made of two key parts:

  • Control gate — connects to the circuit and controls whether current flows through
  • Floating gate — sits sandwiched between insulating layers and can hold an electrical charge, like a microscopic rechargeable battery

To write a 1: a high voltage is applied to the control gate, pushing electrons through the insulating oxide layer onto the floating gate. To erase/remove data: a high voltage is applied in the opposite direction, pulling the electrons back off.

Why this matters for exams "No moving parts" is the single most important idea here — it explains almost every advantage (durability, silence, speed, small size) AND the disadvantage (each cell can only be written/erased so many times before it wears out — limited read/write cycles).
AdvantagesDisadvantages
Very fast read/write accessVery high cost per gigabyte
No moving parts → durableLimited number of read/write cycles
Small, lightweight, portable
Silent
Practice Question

Give three benefits of a tablet using solid-state storage instead of magnetic storage. [3]

Optical Storage

Optical storage (CDs, DVDs, Blu-rays) uses a laser to burn microscopic pits and lands (flat areas) into the surface of a spinning disc. The laser then shines onto these pits and lands to read the data back — when it hits the point where a pit changes to a land (or vice versa), the light scatters differently, and a sensor interprets that scatter as a change in binary value.

CD-R = write once, read-only after. CD-RW / DVD-RW = can be written and rewritten. Blu-ray = biggest capacity, CD = smallest.
AdvantagesDisadvantages
Very low cost per gigabyteVery low capacity
No physical contact between laser & discVery slow read/write access
Small, lightweightProne to scratches
Silent
Common trap Students often say optical storage has "no moving parts" — wrong! The disc spins and the laser arm moves. What it doesn't have is physical contact with the surface, unlike a magnetic read/write head hovering close to a platter.
3. Virtual Memory

Virtual memory is one of the most misunderstood topics — so let's build it from scratch with an analogy.

The desk analogy Imagine your desk (RAM) is completely covered in books you're using. A new book arrives, but there's no room. Instead of giving up, you clear some space by moving the book you're using least right now into a drawer nearby (secondary storage). Now there's room on the desk for the new book. If you need the drawer book again later, you swap it back onto the desk. That drawer is virtual memory.

Formally: virtual memory is an extension of RAM that lives on secondary storage. When RAM is close to full, programs and data not currently being executed get moved out to virtual memory in chunks called pages. When they're needed again, they're paged back into RAM.

The trade-off: Virtual memory keeps the computer running instead of crashing — but secondary storage is far slower than RAM, so heavy use of virtual memory slows the whole system down. The real fix for a RAM shortage is to buy more RAM, not rely on virtual memory.
Practice Question

Explain why it would be better for a user to add more physical RAM rather than rely on virtual memory. [2]

4. Cloud Storage

Cloud storage is just long-term secondary storage that isn't physically in your device — it lives on remote servers owned by a company, and you access it over the internet (a wide area network). Under the hood, cloud providers mostly use magnetic hard drives (cheap, huge capacity), with solid-state increasingly used too.

AdvantagesDisadvantages
Access data anywhere, any deviceSubscription cost (monthly/yearly)
Automatic backups & securityNo access without internet connection
Scalable — buy more space as neededData could be intercepted in transit
Multiple people can collaborate on one fileYou're still legally responsible for data security, even though the provider manages it
Exam-favourite scenario "A school is considering cloud storage" questions almost always want: (advantage) access from home/anywhere with an internet connection, scalable storage, provider-managed backups & security. (disadvantage) reliant on internet connection — if it fails, no access to lesson files/registers/coursework; reliant on third party for security, but still legally responsible.
Practice Question

Explain two disadvantages to a school of moving their data to cloud storage. [4]

What to Memorise
RAM
Volatile, read/write primary storage holding data & instructions currently in use.
ROM
Non-volatile, read-only primary storage holding the bootstrap/BIOS start-up instructions.
Volatile
Contents are lost when power is turned off.
Non-volatile
Contents are retained even when power is off.
Bootstrap
The process of loading the first start-up instructions from ROM when a computer switches on.
Platter / Track / Sector
Magnetic disk parts: platter = spinning metal disc; track = concentric circle on it; sector = wedge-shaped division.
Pits & Lands
Optical disc surface features burned by a laser to represent binary 0s and 1s.
Floating gate
Part of a solid-state transistor that holds an electrical charge to store a bit.
Virtual Memory
An extension of RAM located on secondary storage, used when RAM is full; keeps the system running but is slower.
Page
A chunk of program/data transferred between RAM and virtual memory.
Cloud Storage
Long-term secondary storage on remote servers, accessed via the internet.
6 Storage Characteristics
Capacity, Speed, Cost, Portability, Durability, Reliability.
Concepts Checklist
Exam Tips & Common Mistakes
Mistake #1 — Confusing purpose with characteristics "What is the purpose of RAM?" wants what it does ("stores data/programs currently in use for CPU access"), not what it is ("it's a memory chip"). Always answer with a function, not a description.
Mistake #2 — Mixing up RAM and secondary storage RAM is volatile and loses data when power is off. Secondary storage is non-volatile and holds data permanently. If a question describes data surviving a power cut, it's talking about secondary storage — not RAM.
Mistake #3 — Saying virtual memory makes RAM bigger It doesn't increase actual RAM size. It creates temporary extra space on secondary storage so the system doesn't crash — but it makes things usable, not faster.
Mistake #4 — "Portable" or "no moving parts" alone isn't a full mark Examiners want the benefit spelled out: e.g. "smaller physical size" or "more durable because there are no moving parts to break." A bare adjective on its own often won't score.
Mistake #5 — Forgetting optical storage still has moving parts The disc spins and the laser arm moves — what's special is there's no physical contact with the surface, unlike magnetic read/write heads.
What examiners reward Specific, applied examples (a named device + a named piece of data), full comparisons using all 6 characteristics where relevant, and cause-and-effect explanations ("X happens, which causes Y") rather than one-word answers.
Data Storage & Compression · Cambridge (CIE) IGCSE Computer Science · Revision Guide
🔓 Read the full Data Storage note — free You're seeing the preview · free account, no card needed
What's inside
📖 Revision notes 🎯 Learn mode ✦ AI flashcards ✓ Instant AI marking 🧊 3D explorers 🧪 Experiments & simulations 📈 Progress tracking
📄 Practise Data Storage with Computer Science 0478 past papers Every paper with its mark scheme — answer online, marked instantly. Open →

Read the full Data Storage notes free

That's the preview — create a free account to read the rest, plus flashcards and practice questions with instant AI marking. No credit card.

Unlock the full notes free →

More Computer Science topics