GCSE · Computer Science · OCR · Spec J277
Purpose of RAM
Ever lost an hour of unsaved work because the power cut out? That wasn't bad luck. That was RAM doing exactly what RAM does.
Computer Science · Memory
Follow an app into RAM
One app, eight moments. Each box is a place in the computer, and the lit boxes are the ones doing something.
Before you press Next: you double-click an app. Where do you think its instructions go before the CPU can use them?
Phase: App not open yet
Secondary storage
app saved here
RAM
—
CPU
—
Computer
—
Output
Step 1: You haven't opened the app yet. Its instructions are saved in secondary storage. RAM isn't holding any of them, and the CPU has nothing from this app to fetch.
Press Next to step through. Watch which boxes light up and what changes inside them.
Predict, then check
Commit to an answer first, then see what RAM does.
An app is open and your work is sitting in RAM. Someone yanks out the power cable. What happens to everything in RAM?
WHAT YOU'VE LEARNED
A quick recap of today's lesson.
The CPU's working space: where everything being processed is held while the computer runs.
What you need to know
- RAM (random access memory) is temporary memory, used while the computer is running.
- It stores all the data and instructions the CPU needs and is currently processing.
- The CPU accesses RAM directly, and RAM is faster for the CPU to access than secondary storage.
- Open an application and its instructions are loaded from secondary storage into RAM.
- The CPU then fetches those instructions from RAM and executes them.
Have a goSam says, "When I open a game, the CPU runs it straight from my saved files." Where do the game's instructions go first?
Into RAM. The CPU fetches them from there.
Sam skips a step. The instructions are loaded from secondary storage into RAM, and the CPU fetches them from RAM, not from the saved files.
- RAM has read and write access: data can be read from and written to memory addresses.
Have a goThe CPU wants to store a new value at a memory address in RAM. Is that a read or a write?
A write.
Writing puts data into a memory address; reading gets it back out. RAM allows both, so it is not just a place to look things up.
- RAM is volatile: it needs a constant supply of power to keep its data.
- Switch the computer off and all the data and instructions in RAM are lost.
- If a computer doesn't have enough RAM, it will run slowly.
Have a goSam again: "More programs open means a busier, faster computer!" What happens if the RAM runs short?
The computer runs slowly.
Being busy doesn't make it quicker. With not enough RAM, a computer will run slowly.
The big picture
RAM (random access memory) is temporary memory that stores all the data and instructions the CPU needs while the computer is running. When an application is used, its instructions are loaded from secondary storage into RAM, and the CPU fetches them from there. RAM is directly accessed by the CPU and is faster to access than secondary storage, it has read and write access, and it is volatile, so everything in it is lost when the power goes off. Too little RAM makes a computer run slowly.
Key points
Worked example
Problem
Practice question: Tom writes, "When I open a game, the CPU reads it straight from my saved files. If the power cuts out, RAM keeps hold of the game until the power comes back." Find the two mistakes and correct them.
⚠ Watch out
Treating RAM as the place where files are saved. RAM only holds what is being processed right now, and everything in it is lost when the power goes off.
Memory hook
RAM is the CPU's workbench: what is being worked on is out on it, and when the power goes, the bench is swept clean. (The analogy has one gap: a real workbench survives a power cut and RAM's contents don't.)
Check yourself
Without scrolling up: why might someone call RAM the CPU's working space, and what happens to that working space when the power is switched off?
Flashcards
(9)What is RAM?
What does RAM store?
How does the CPU reach RAM, compared with secondary storage?
What happens to an application's instructions when you open it?
Where does the CPU fetch an application's instructions from?
What does read and write access mean for RAM?
What does it mean to say RAM is volatile?
What happens to everything in RAM when the computer is switched off?
What happens if a computer does not have enough RAM?
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 postedMore OCR GCSE Computer Science topics
- Lossy compression
- Magnetic storage
- Need for compression
- Need for primary storage
- Need for secondary storage
- Optical storage
- Purpose of ROM
- RAM vs ROM
- Sample rate, duration, bit depth
- Solid state storage
- Sound representation: sampling
- Storage characteristics: capacity, speed, portability, durability, reliability, cost
How this lesson was checked. This OCR GCSE Computer Science (specification J277)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 14 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.