Pages moving between RAM and virtual memory
Data is split into fixed-size pages. Idle pages are moved out of RAM into virtual memory, then swapped back into RAM when the CPU needs them.
Understanding Pages moving between RAM and virtual memory in IGCSE Computer Science Paper 1
What it does: Swapping in is the reverse of swapping out: the needed page is brought from virtual memory back into RAM so the CPU can use it. Idle pages are swapped out to free space in RAM. Pages the CPU is actively using stay in RAM. Virtual memory is an area of secondary storage that is used as an extension of RAM. Data is divided into equal-sized blocks called pages, so each one can be swapped in or out of RAM as a single unit.
Common mistakes: The idle page must be one that is currently in RAM so it can be swapped out. P4 is not in RAM (RAM holds P1, P2 and P3). It should be a RAM page such as idle ← P2. Pages are fixed-size blocks of data, so the page size must be a constant value such as 4096, not a random number.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 314–324) and word search (Modules 304–324).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
pagingFill in the Blanks
Spot the Error
Student with a class code? Join your class →