OCR · GCSE · Computer Science
Overview guide · Check your current course specification before revising.
Memory (RAM and ROM)
Master the essentials of computer memory for your OCR GCSE exam. This guide breaks down RAM, ROM, and Virtual Memory with clear explanations, worked examples, and memory hooks to help you secure top marks.
- 6 min read
- 4 worked examples
- 6 practice questions
- 9 key terms
Study Notes
Overview
This guide delves into the essential topic of Primary Memory, a cornerstone of the OCR GCSE Computer Science (J277) specification. Understanding the distinction between RAM and ROM is not just about memorizing definitions; it's about grasping how a computer fundamentally operates. This topic forms the bedrock for understanding operating systems, software execution, and system performance. In the exam, expect questions that require you to compare RAM and ROM directly, explain the purpose of each, and analyze the role of Virtual Memory in system stability. A solid grasp here will allow you to build synoptic links to topics like the CPU and secondary storage, earning you credit for a holistic understanding.
Open full-size image (opens in a new tab)
Key Concepts
Concept 1: RAM (Random Access Memory)
RAM is the computer's main workspace. Think of it as a busy workbench where a craftsman (the CPU) keeps the tools and materials (data and programs) they are actively using. When you open an application like a word processor or a web browser, it is loaded from the much slower secondary storage (like a hard drive) into the super-fast RAM so the CPU can access it instantly.
The most critical characteristic of RAM, and a guaranteed exam point, is that it is volatile. This means that as soon as the computer loses power, everything stored in RAM is wiped clean. It's a temporary, high-speed holding area. Credit is given for answers that specifically state RAM stores the Operating System, currently running applications, and the data they are using.
Example: You are editing a photo. The photo file itself is on your hard drive. But the photo editing software, the photo itself, and every change you make (like adjusting brightness) are all held in RAM. If the power cuts before you save, those changes are lost because RAM is volatile.
Open full-size image (opens in a new tab)
Concept 2: ROM (Read-Only Memory)
ROM is the computer's permanent instruction manual. Unlike RAM, it is non-volatile, meaning its contents are not erased when the power is turned off. You can only read the instructions from it; you cannot normally write new ones.
Its primary, and most crucial, role is to store the BIOS (Basic Input/Output System) or bootstrap loader. This is the very first program the CPU runs when you turn the computer on. The BIOS performs a quick self-test of the hardware (called the POST - Power-On Self-Test) and then provides the instructions to load the main operating system from the secondary storage device into RAM. Without ROM, the computer wouldn't know how to start up. Examiners award marks for specifically mentioning the BIOS or bootstrap loader, not just 'startup files'.
Example: When you press the power button on your computer, the CPU immediately starts reading instructions from the ROM chip. These instructions tell it to check if the keyboard is connected, how much RAM is installed, and then, crucially, where to find the operating system (e.g., Windows or macOS) on the hard drive to begin loading it.
Concept 3: Virtual Memory
What happens when your workbench (RAM) is completely full of tools and materials, but you need to get another one out? You could just give up (the computer crashes), or you could find a temporary overflow space. This is exactly what Virtual Memory does.
When the physical RAM is completely full, the operating system selects a portion of secondary storage (usually the hard drive or SSD) to use as a temporary extension of RAM. Data that is in RAM but not being actively used (for example, a background application you haven't touched for a while) is moved to this virtual memory area on the hard drive. This process is called paging or swapping. This frees up space in the physical RAM for the new data that is immediately needed.
The major drawback is that secondary storage is significantly slower than RAM. Therefore, when the system has to constantly swap data back and forth between RAM and virtual memory (a situation known as 'disk thrashing'), the computer's performance will slow down noticeably. It's a mechanism to prevent crashes, not to increase speed.
Open full-size image (opens in a new tab)
Mathematical/Scientific Relationships
While there are no specific formulas for this topic, understanding the speed relationship is crucial:
RAM access speed vs Secondary Storage access speed: RAM is typically measured in nanoseconds (billionths of a second), while hard drives are measured in milliseconds (thousandths of a second). This means RAM is approximately 100,000 times faster than a traditional hard drive. Even modern SSDs, while much faster than hard drives, are still significantly slower than RAM. This speed difference is why virtual memory causes performance degradation.
Practical Applications
Real-World Scenario 1: Gaming PerformanceWhen you play a modern video game, the game's core files are stored on your hard drive or SSD. However, when you launch the game, the game engine, textures, character models, and level data are all loaded into RAM. If your system doesn't have enough RAM, the game will use virtual memory, causing stuttering and lag as data is constantly swapped to and from the hard drive.
Real-World Scenario 2: Smartphone Boot-UpWhen you turn on your smartphone, the process is identical to a desktop computer. The ROM contains the firmware and bootstrap instructions. These instructions load the mobile operating system (iOS or Android) from the phone's flash storage into RAM, making the phone ready to use.
Real-World Scenario 3: Server UptimeServers in data centers are designed to run 24/7 without interruption. They rely on non-volatile ROM to ensure that even if there's a brief power interruption, the system can reboot automatically using the BIOS instructions stored in ROM.
Check what you remember
Read the wording for your board, then hide it and explain Primary Storage in your own words. Rough notes are fine. This is a self-check, with no mark or grade.
Reference: OCR
The main memory of a computer that is directly accessible by the CPU. It is volatile and holds the operating system, applications, and data currently in use.
Interactive Diagrams
2 interactive diagrams to visualise key concepts
Conceptual Flow Outline
The boot-up sequence of a computer, showing the crucial role of ROM in loading the Operating System into RAM.
Conceptual Flow Outline
A concept map showing how data is swapped from a full RAM to Virtual Memory to free up space for new applications.
Worked Examples
4 worked examples — open one to explore the question and available guidance.
Practice Questions
Try the question, then reveal an answer plan or example response
State what is meant by the term 'volatile'. [1 mark]
Hint: Think about what happens to your work if the power goes out before you save.
Describe the purpose of ROM in a computer system. [2 marks]
Hint: What is the very first thing a computer needs to do when you press the power button?
Explain two reasons why a computer needs RAM. [4 marks]
Hint: Think about where the OS and your open programs need to be for the CPU to access them quickly.
A computer user complains of poor performance. A technician notes that the hard disk activity light is constantly flashing. Explain what is likely causing this issue. [3 marks]
Hint: What process involves frequent reading and writing to the hard disk and is related to memory?
A smartphone is a computer system. Describe how RAM and ROM are likely used within it. [4 marks]
Hint: Apply the core principles of RAM and ROM to the context of a mobile device.
Compare the volatility of RAM and ROM. [2 marks]
Hint: What happens to the data in each when the power is turned off?
Ready to test yourself interactively?
Active recall beats reading alone. Answer questions on Memory (RAM and ROM) with instant AI scoring and mark scheme guidance.
A week of Premium from your first lesson · Then the free plan continues · No card, no charge
Exam technique
How to turn what you know into marks
How to approach the question
1. Underline the command word (e.g., 'Explain', 'Compare'). 2. Identify the key terms in the question (e.g., RAM, ROM, Virtual Memory). 3. Note the number of marks available to determine the required depth of your answer.
How to structure your answer
For 'Compare' questions, use phrases like 'whereas' or 'on the other hand' to create a direct comparison. For 'Explain' questions, use 'because' or 'this leads to' to show cause and effect. For 6-mark 'Evaluate' questions, structure your answer with an introduction, a paragraph for the pros, a paragraph for the cons, and a concluding judgement.
Timing
Approximately 1 minute per mark, so a 6-mark question should take about 6-7 minutes
Common pitfalls
- Confusing memory (RAM) with storage (hard drive). Remember, RAM is for data *in use*, storage is for saved files.
- Stating that virtual memory makes a computer faster. It does the opposite; it prevents crashes at the cost of speed.
- Being too vague. Instead of 'ROM holds startup files', write 'ROM holds the BIOS/bootstrap loader'.
- Only describing one side in a 'Compare' question. You must explicitly compare both items to get full marks.
What the command words want
- Compare
- Identify similarities AND differences - use comparative language like 'whereas'.
- Explain
- Say HOW or WHY - use 'because' to link cause and effect.
- Describe
- Say what happens or what something is like - use correct terminology.
- Evaluate
- Consider both sides (pros and cons), use evidence, and make a final, reasoned judgement.
- Calculate
- Show working, use correct formula, include units.
- State/Give
- Brief factual answer - 1-2 words or a short phrase.
Watch or listen (optional)
Test your understanding of Memory (RAM and ROM)
Active recall beats re-reading. Take an instant quiz now to test what you’ve learned and lock it into long-term memory.
A week of Premium from your first lesson · Then the free plan continues · No card, no charge