RAM and ROM

Test yourself on RAM and ROM with exam style questions, marked instantly.

Flashcards that come back just before you would forget them.

A revision plan that remembers what you know and shows what to do next.

See which topics you have nailed and which need another look.

Quiz yourself on RAM and ROMGet your flashcardsBuild my revision planTrack my progress

The Whiteboard vs. The Textbook

Imagine you're studying for your GCSEs. You use a whiteboard for working out problems - it's quick to write on and erase, perfect for temporary work. But when you turn off the light and leave, everything disappears! You also have a printed textbook - you can't write in it (well, you shouldn't!), but all the information stays there permanently, even when you close it. This is exactly how RAM (the whiteboard - fast but temporary) and ROM (the textbook - permanent but unchangeable) work in your computer!

RAM vs ROM Comparison

Two panels. RAM, random access memory: volatile (data is lost when power is off), read and write, holds the operating system and running programs, larger capacity (for example 4 GB to 64 GB). ROM, read only memory: non-volatile (data stays when power is off), read only, holds start-up instructions, small capacity (a few MB).

The start-up instructions in ROM are the BIOS. When the computer is switched on it runs them first, and they then load the operating system into RAM.

Deep Dive: Why Computers Need Both RAM and ROM

The Office Desk Analogy

RAM is like your desk workspace - when you're working on a project, you spread papers all over your desk for quick access. The larger your desk (more RAM), the more projects you can work on simultaneously without shuffling papers in and out of filing cabinets. But at the end of the day, you clear your desk - everything goes back to storage or gets thrown away. That's why RAM is "volatile" - it loses everything when power is off.

ROM is like the instruction manual permanently glued to the wall - it tells you the basic steps to start work each morning. You can't change it (well, not easily!), but you don't need to - it's always there, even if the power goes out. That's why ROM stores the BIOS - the computer's startup instructions that never change.

RAM - Random Access Memory

Definition:

RAM (Random Access Memory) is the volatile main memory used by the computer to temporarily store data and programs that are currently being used. It provides fast read and write access for the CPU.

Key Characteristics:

  • Volatile: Requires constant electrical power to maintain data - loses ALL content when power is off
  • Read/Write: Can both store new data (write) and retrieve existing data (read) very quickly
  • Fast access: Much faster than secondary storage (SSD/HDD) but slower than CPU cache
  • Temporary storage: Holds data only while needed - cleared on shutdown/restart
  • Random access: Any memory location can be accessed directly in the same amount of time

What RAM Stores:

  • Running programs: When you open an application, it loads from storage into RAM
  • Operating system: Windows/macOS/Linux runs from RAM while the computer is on
  • Open documents: The essay you're writing, the spreadsheet you're editing
  • Program data: Variables, temporary calculations, active data being processed

How Much RAM Do You Need?

  • 4GB: Minimum for basic tasks (web browsing, documents)
  • 8GB: Comfortable for most users (multiple programs, moderate multitasking)
  • 16GB+: Heavy multitasking, video editing, gaming, programming
  • 32GB+: Professional workstations (3D rendering, large datasets, virtual machines)

Why More RAM = Better Performance:

When you run out of RAM, the computer has to use "virtual memory" - it swaps data between RAM and the much slower hard drive/SSD. This causes severe slowdowns. More RAM = less swapping = faster performance, especially when multitasking.

ROM - Read Only Memory

Definition:

ROM (Read Only Memory) is non-volatile memory that stores permanent instructions that rarely or never change. It retains its content even when the power is turned off.

Key Characteristics:

  • Non-volatile: Keeps data permanently, even without power
  • Read-only: Data is set during manufacturing or programming - cannot be easily changed by normal use
  • Permanent storage: Contents remain unchanged for the device's lifetime (in traditional ROM)
  • Slow write speed: If writable at all, writing is much slower than reading
  • Critical instructions: Stores essential startup code that must never be lost

What ROM Stores:

  • BIOS/UEFI Firmware: Basic Input/Output System - the first code that runs when you press the power button
  • Boot instructions: Tells the computer how to start up and find the operating system
  • POST (Power-On Self-Test): Checks that hardware components are working correctly
  • Hardware drivers: Low-level code to communicate with keyboard, screen, storage devices

The Boot Process (Why ROM is Essential):

  1. Power on: Electricity reaches the motherboard
  2. ROM activates: CPU executes BIOS code stored in ROM (no operating system loaded yet!)
  3. POST runs: BIOS tests RAM, checks for keyboard, GPU, storage drives
  4. Boot device search: BIOS looks for bootable device (hard drive, USB, CD)
  5. Hand over control: BIOS loads bootloader, which then loads the operating system into RAM

RAM vs. ROM - Complete Comparison

Aspect RAM (Random Access Memory) ROM (Read Only Memory)
Volatility Volatile - loses data when power off Non-volatile - keeps data without power
Access Type Read AND Write (both fast) Read only (or very slow write)
Speed Very fast (nanoseconds) Slower than RAM (microseconds)
Purpose Temporary working memory Permanent storage of essential code
Content Running programs, open files, OS, data BIOS/UEFI, boot instructions, firmware
Change Frequency Changes constantly (many times per second) Never or rarely changes (firmware updates only)
Size (Typical) 4GB - 32GB (consumer devices) Few MB (very small compared to RAM)
Cost per GB Moderate (but getting cheaper) More expensive per GB
User Interaction User indirectly controls (opening programs) User rarely interacts (firmware updates only)
Essential For Running programs and multitasking Starting the computer (boot process)

Types of ROM

While the name "Read Only Memory" suggests you can never change the data, modern ROM types offer different levels of reprogrammability:

1. Traditional ROM (Mask ROM):

  • Data written during manufacturing - cannot be changed EVER
  • Used for devices with fixed functionality (simple calculators, old game cartridges)
  • Cheapest option for mass production

2. PROM (Programmable ROM):

  • Blank when manufactured - can be programmed ONCE by the user
  • Uses special programming device to "burn" data permanently
  • Once programmed, cannot be erased or changed
  • Good for custom firmware that won't need updates

3. EPROM (Erasable Programmable ROM):

  • Can be programmed, erased with UV light, then reprogrammed
  • Has a quartz window on the chip - expose to UV for 10-20 minutes to erase
  • Must remove from circuit to erase (inconvenient!)
  • Useful for prototyping and development

4. EEPROM (Electrically Erasable Programmable ROM):

  • Can be electrically erased and reprogrammed WITHOUT removing from device
  • Can erase/write individual bytes (very flexible)
  • Used in modern computer BIOS chips - allows firmware updates!
  • Slower write speeds than RAM
  • Limited write cycles (~100,000 times per cell)

5. Flash Memory (Type of EEPROM):

  • Modern advancement of EEPROM - faster and higher density
  • Used in: USB drives, SD cards, SSDs, smartphones, digital cameras
  • Can only erase/write in BLOCKS (not individual bytes like EEPROM)
  • Non-volatile - keeps data without power
  • Much faster than traditional ROM, but slower than RAM
  • Limited write cycles but high enough for years of normal use

Real-World Example: What Happens When You Open a Word Document?

Step 1 - Boot (ROM in action): You press the power button. ROM immediately provides BIOS instructions to start the computer, test hardware, and load Windows from the hard drive into RAM.

Step 2 - Loading (ROM + RAM): Windows is now running in RAM. You double-click "Essay.docx" on your desktop. Windows loads Microsoft Word from the SSD into RAM. Your document file also loads from SSD into RAM.

Step 3 - Editing (RAM only): You type and edit. Every change happens in RAM - incredibly fast! The document hasn't been saved to the SSD yet. If the power cuts out now, you lose your changes (because RAM is volatile).

Step 4 - Saving: You press Ctrl+S. The document in RAM is copied back to the SSD (permanent storage). Now it's safe! ROM isn't involved anymore - it only helps during startup.

Step 5 - Shutdown: You close Word and shut down. RAM is cleared (everything gone). The SSD keeps your saved document. ROM keeps the BIOS ready for next time you boot.

Exam Tips - RAM and ROM

Most common exam questions:

  • "What does volatile mean?" → Loses data when power is turned off (always mention power!)
  • "Difference between RAM and ROM?" → Give TWO differences: (1) RAM is volatile, ROM is non-volatile; (2) RAM is read/write, ROM is read-only
  • "Why does ROM store the BIOS?" → BIOS must be available immediately on startup, before OS loads, and must never be lost
  • "What does RAM store?" → Running programs, open files, operating system, data being processed

Key phrases to use:

  • Volatile: "Loses data when power is off" (say exactly this!)
  • Non-volatile: "Keeps data without power" or "Retains data when power off"
  • RAM: "Fast read/write access" + "temporary storage" + "volatile"
  • ROM: "Read-only" + "permanent/fixed instructions" + "non-volatile"

Common mistakes to avoid:

  • Saying ROM stores documents or files - NO! It stores BIOS/firmware only
  • Saying RAM is permanent - NO! It's temporary and volatile
  • Confusing ROM with secondary storage (hard drive/SSD) - they're different!
  • Forgetting to explain WHY volatile matters - always link to "loses data when power off"
  • Not mentioning what each stores - RAM: programs/files; ROM: BIOS/boot instructions

Extended answer structure (4-6 marks):

  1. Define volatility: RAM is volatile (loses data when power off), ROM is non-volatile (keeps data)
  2. Access type: RAM is read/write (can store and retrieve), ROM is read-only (cannot easily change)
  3. Purpose: RAM stores running programs and data being used, ROM stores BIOS and startup instructions
  4. Speed: RAM is faster for both reading and writing
  5. Example/justification: RAM needs to be fast for running programs, ROM needs to be permanent so boot code is never lost

Quick Reference - Key Points

RAM Summary:

  • Volatile - loses data when power off
  • Read/write - fast in both directions
  • Stores: running programs, open files, OS, active data
  • Temporary - cleared on shutdown
  • Larger capacity (4GB-32GB typical)

ROM Summary:

  • Non-volatile - keeps data without power
  • Read-only - cannot easily change (or very slow write)
  • Stores: BIOS/UEFI, boot instructions, firmware
  • Permanent - rarely changes (firmware updates only)
  • Smaller capacity (few MB typical)

Memory Hierarchy (Fastest to Slowest):

  1. CPU Registers: Tiny (bytes), inside CPU, fastest
  2. CPU Cache (L1/L2/L3): Small (KB-MB), on CPU, very fast
  3. RAM: Medium (GB), main memory, fast
  4. ROM: Small (MB), firmware storage, moderate speed
  5. SSD: Large (GB-TB), permanent storage, slower than RAM
  6. HDD: Largest (TB), permanent storage, slowest

Make this stick

Signing in gives access to all PrepWise features.

PrepWise is a trading name of A3M Quality Solutions Limited, registered in England and Wales, company number 14959172. Registered office: 202 Stroud Road, Gloucester, GL1 5LA. ICO registration ZC267069.