GCSE · Computer Science · AQA · Spec 8525

RAM

You've typed two pages. The lights flicker. The screen goes black. Where did your work go? It was sitting in RAM, and RAM has one big weakness.

One session, from opening an app to switch-off

1Saved, not open23456

Stage 1 of 6: Saved, not open. paused

Saved, not open · 1/6scrub the session →

Your essay app and your essay file are sitting on secondary storage. Nothing about them is in RAM yet, and the CPU isn't working on them.

Scrub through slowly. At every stage, ask: where is my essay right now?

RAM vs secondary storage

RAMvsSecondary storage

People say 'memory' when they mean 'storage' all the time. Read the first row twice.

Focus

When the power goes off

RAM

Loses everything in it (it's volatile)

Secondary storage

Keeps its data

The insight

This is the difference that matters most. RAM needs a constant supply of power to hold its data; secondary storage doesn't.

How long it holds things

RAM

Temporarily, while the computer is running

Secondary storage

Long term, until it's deleted or changed

What it holds

RAM

The data and instructions being processed right now

Secondary storage

Applications and saved files, in use or not

Speed for the CPU

RAM

Faster to access

Secondary storage

Slower to access

UK note

AQA GCSE Computer Science (8525), section 3.4.5.

Power cut: predict, then check

Think about where each piece of your work actually is.

Power cut! You saved your essay at 3 pm, then typed another paragraph. When the power comes back and you open the essay, what will you find?

What do you really think?

So what is virtual memory?

A laptop has so many apps open that there isn't enough RAM for them all, so it starts using virtual memory. Four friends explain what that means.

Which one is closest to what you think right now?
How sure are you?

WHAT YOU'VE LEARNED

A quick recap of today's lesson.

Follow one working session from opening an app to the power going off, and see exactly where your work sits at every moment.

What you need to know

  • RAM (random access memory) is temporary memory. It holds the data and instructions the CPU needs while the computer is running.
  • What's in RAM is what's being processed right now: the apps in use and the data they're working on.
  • When you open an app, it's loaded from secondary storage into RAM.
  • Have a goJay is certain: “When I open a game, the CPU just runs it straight off secondary storage. RAM's only a spare.” Where does the game actually go when he opens it?

    It's loaded from secondary storage into RAM.

    RAM isn't a spare: an app in use is loaded into RAM, because that's where the data and instructions being processed are kept.

  • Why bother? The CPU can access RAM faster than files stored on secondary storage.
  • RAM has read and write access: data can be read from memory addresses and written to them.
  • Have a goYou type a sentence, then delete one word. Is RAM being read from, written to, or both?

    Both.

    Your changes are written to memory addresses in RAM, and the CPU reads data from RAM as it works. That's exactly what read and write access allows.

  • RAM is volatile. It needs a constant supply of power to keep the data stored on it.
  • Switch off, and all the data and instructions in RAM are lost. Unsaved work goes with them.
  • Not enough RAM? Virtual memory temporarily moves data and instructions that aren't actively being used out to secondary storage.
  • They're moved back into RAM when the CPU needs them again.
  • Have a goPut these in order: (1) the CPU needs the data again, (2) RAM runs short, (3) inactive data is moved to secondary storage, (4) the data is moved back into RAM.

    2, 3, 1, 4.

    Virtual memory is only used once there isn't enough RAM, and data only comes back when the CPU needs it, so 'moved back' can't come before 'needed again'.

  • Using virtual memory slows the computer down, because secondary storage is slower for the CPU to access than RAM.

The big picture

RAM is temporary memory that holds the data and instructions the CPU needs while the computer is running. Apps are loaded into it from secondary storage when they're in use, because the CPU can access RAM faster. RAM has read and write access, and it's volatile: cut the power and everything in it is lost. When there isn't enough RAM, virtual memory moves inactive data out to secondary storage and back when it's needed, which slows the computer down.

Key points

1RAM: temporary memory holding the data and instructions in use while the computer runs.
2Apps in use are loaded from secondary storage into RAM, which is faster for the CPU to access.
3RAM has read and write access.
4RAM is volatile: no power, no data.
5Virtual memory borrows secondary storage when RAM runs short, and slows the computer down.

Worked example

Problem

Leila has a video editor and a web browser open, and her computer is using virtual memory. She's been editing for twenty minutes without touching the browser. When she clicks back to the browser, there's a pause before it responds. Explain the pause.

⚠ Watch out

Mixing up memory and storage, for example saying a file is 'saved in RAM'. RAM only holds what's in use while the computer runs; a saved file is on secondary storage, which keeps it when the power is off.

🧠

Memory hook

RAM is your desk, secondary storage is the filing cabinet. You work at the desk because it's quick to reach. Run out of desk space and papers go back in the cabinet, which is slow. And at switch-off, the desk is cleared.

✓

Check yourself

Cover the page. Follow one app from opening to switch-off, saying where its data is at each step. Then check against the session at the top.

Flashcards

(9)
What does RAM stand for?
Random access memory.
What does RAM hold?
The data and instructions the CPU needs while the computer is running: whatever is currently being processed.
What does it mean to say RAM is volatile?
It needs a constant supply of power to keep its data. When the computer is switched off, everything in RAM is lost.
Why are applications loaded into RAM when they're in use?
So the CPU can get at them quickly: RAM is faster to access than secondary storage.
What does 'read and write access' mean for RAM?
Data can be read from memory addresses in RAM and written to them, so what's stored can be changed as well as read.
What triggers a computer to start using virtual memory?
Running out of RAM capacity.
Virtual memory: what moves, and where to?
Inactive data and instructions go from RAM to secondary storage, then return to RAM once the CPU wants them.
Why does using virtual memory slow a computer down?
Every trip to secondary storage is slower for the CPU than a trip to RAM.
RAM or secondary storage: which keeps its data when the power is off?
Secondary storage. RAM loses everything.

Tap any card to flip it, or use Study as deck to go through them one at a time. In the full lesson these run as a spaced-repetition deck — you rate each card Hard, Good or Easy and the tricky ones keep coming back until they stick.

Learning with Lightbulb is opening soon

You can use this lesson now. Join the waitlist and we'll let you know when the full Lightbulb experience is ready.

Keep me posted

More AQA GCSE Computer Science topics

See the full AQA Computer Science curriculum →

How this lesson was checked. This AQA GCSE Computer Science (specification 8525)lesson was published through Lightbulb Learning's human-designed editorial process — the educational standards, accuracy rules and publication checks it must pass were authored and approved by Philip Halpin. It passed subject-specific assessment, automated educational checks and technical publication verification before going live (publication checks completed 4 November 2026). Published pages are monitored, human spot-checking is ongoing across the lesson library, and anything found wrong is corrected or withdrawn. How our lessons are made and checked. Spotted a mistake? Email hello@lightbulblearning.co and we'll review it.