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.

1 / 8

Press Next to step through. Watch which boxes light up and what changes inside them.

Step 1 of 8: 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..

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?

Check your thinking

What is RAM really for?

Four friends are arguing about what RAM does while a computer is running.

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

Your turn

Describe it like an exam answer

Describe the purpose of RAM. [4 marks]

0 words · your answer stays on this page and is not sent anywhere.

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

1RAM is temporary memory that stores all the data and instructions the CPU needs while the computer is running.
2An application's instructions are loaded from secondary storage into RAM, and the CPU fetches them from RAM. RAM is directly accessed by the CPU and is faster to access than secondary storage.
3RAM has read and write access, so data can be read from and written to memory addresses.
4RAM is volatile: it needs a constant supply of power, so everything in it is lost when the computer is switched off. Not enough RAM makes a computer run slowly.

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?
Random access memory: temporary memory used to store the data and instructions the CPU needs while the computer is running.
What does RAM store?
All the data and instructions that are currently being processed.
How does the CPU reach RAM, compared with secondary storage?
It accesses RAM directly, and RAM is faster for the CPU to access than files in secondary storage.
What happens to an application's instructions when you open it?
They are loaded from secondary storage into RAM.
Where does the CPU fetch an application's instructions from?
From RAM, after they have been loaded there. The CPU then executes them.
What does read and write access mean for RAM?
Data can be read from and written to memory addresses.
What does it mean to say RAM is volatile?
It requires a constant supply of power to maintain the data stored on it.
What happens to everything in RAM when the computer is switched off?
All the data and instructions in RAM are lost.
What happens if a computer does not have enough RAM?
It will run slowly.

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 OCR GCSE Computer Science topics

See the full OCR Computer Science curriculum →

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.