Cambridge O Level Computer Science · Syllabus 2210 · Hardware
RAM
What is RAM?
Random access memory: volatile primary storage, directly accessed by the CPU, which holds the programs and data currently in use and can be both read from and written to; its contents are lost when power is removed.
This definition is part of the Hardware chapter in Cambridge O Level Computer Science.
RAM in context
Topic 3 is one machine seen from four distances. Up close, the CPU repeats a single loop — fetch an instruction, decode it, execute it — using named registers and three buses. Step back and the CPU is only useful because input devices and sensors turn physical things into data and output devices and actuators turn data back into physical things. Step back again and nothing survives a power cut unless storage holds it: RAM while the machine runs, secondary or cloud storage afterwards. Step back once more and the machine needs network hardware — a NIC with a MAC address, an IP address and a router — before it can be found and reached by anything else.
Three separate things affect how much work a CPU gets through. The clock sets how many cycles happen per second, so a higher clock speed can allow more processing operations per second. The number of cores sets how many instruction streams the CPU can work on at the same time. The size of the cache sets how much frequently used data and instructions can be kept close to the CPU, so it has to wait for the slower RAM less often. Each one can improve performance; none of them guarantees it on its own.
Primary storage is storage that is directly accessed by the CPU. That single property is what puts RAM and ROM in this category and keeps hard disks out of it. The two kinds of primary storage do opposite jobs: RAM holds the programs and data currently in use and can be written to, but is volatile — its contents are lost when the power is removed. ROM holds instructions and data that must survive being switched off, and is non-volatile. A computer needs both: without RAM there is nowhere to work, and without ROM there is nothing to tell the machine what to do when it is first switched on.
Common mistakes with RAM
- 1. “The CPU is the entire computer.” Why wrong A CPU on its own cannot receive a key press, keep a file after a power cut, or show a result. It is one component among several. Correct model The CPU processes instructions and data and controls the computer's operations. The computer is the whole system: CPU, memory, input devices, output devices and secondary storage. Exam-safe “The CPU processes the instructions and data input into the computer so that a result can be output, and controls the computer's operations.” Check: name three things a computer needs that are not the CPU.Any three of: memory (RAM and ROM), input devices, output devices, secondary storage, buses.
- 2. “A microprocessor is any electronic chip.” Why wrong Memory chips, sound chips and graphics chips are all integrated circuits, and none of them is a microprocessor. Correct model A microprocessor is a type of integrated circuit — one that contains the processing functions of a CPU on a single chip. Every microprocessor is an integrated circuit; not every integrated circuit is a microprocessor. Exam-safe “A microprocessor is a type of integrated circuit on a single chip that contains the processing functions of a CPU.” Check: is a RAM chip a microprocessor?No. It is an integrated circuit, but it stores data rather than containing the processing functions of a CPU.
- 10. “Higher clock speed guarantees a faster computer.” Why wrong It treats one specification as the whole answer. A CPU waiting for data from RAM does not get more work done by waiting faster. Correct model A higher clock speed can allow more processing operations per second, but overall performance also depends on the number of cores, the size of the cache and what the software is doing. Higher clock speed also increases power consumption and heat. Exam-safe “A higher clock speed means more clock cycles per second, so more instructions can be processed per second — but performance also depends on the cores, the cache and the software.” Check: give one drawback of increasing clock speed.It increases power consumption and generates more heat, which may require extra cooling and shortens battery life.
- 12. “Cache and RAM are identical.” Why wrong If they were the same there would be no reason to have both, and no reason cache improves performance. Correct model Cache is small, fast memory inside or very close to the CPU that holds frequently or recently used data and instructions. RAM is much larger, slower and further away, and holds everything currently in use. Cache exists to reduce how often the slower RAM has to be accessed. Exam-safe “Cache is small, fast memory close to the CPU holding frequently used data and instructions, so fewer accesses to the slower RAM are needed.” Check: state two differences between cache and RAM.Any two of: cache is smaller; cache is faster to access; cache is inside or closer to the CPU; cache holds only frequently or recently used data and instructions; cache costs more per unit of storage.
- 18. “RAM is permanent storage.” Why wrong RAM is volatile. Anything in it disappears the instant the power is removed — which is why an unsaved document is lost in a power cut. Correct model RAM holds the programs and data currently in use and can be read from and written to, but it is volatile. Permanent storage is the job of secondary storage. Exam-safe “RAM is volatile primary storage holding the programs and data currently in use; its contents are lost when power is removed.” Check: a file is edited but not saved, and the power fails. Where was the file, and why is it gone?It was in RAM, which is volatile, so its contents were lost. It had not yet been written to secondary storage.
- 19. “ROM is ordinary working memory.” Why wrong Working memory has to be written to constantly as programs run. That is not what ROM is for in this model. Correct model ROM is non-volatile primary storage holding instructions and data that must always be present, such as the start-up instructions. It is read from during normal operation; RAM is the working memory. Exam-safe “ROM is non-volatile and stores the instructions the computer needs at start-up; it is read from during normal operation rather than used as working memory.” Check: which of RAM and ROM is usually much larger, and why does that make sense?RAM, because it has to hold every program and file currently in use, whereas ROM only has to hold a fixed set of start-up instructions.
- 21. “Virtual memory is extra RAM.” Why wrong No physical memory has been added. Virtual memory is space on a drive being used as if it were RAM. Correct model Virtual memory is an area of secondary storage used when there is not enough RAM. Pages are transferred between RAM and virtual memory as they are needed, and the CPU still only works with RAM. Exam-safe “Virtual memory uses part of secondary storage when there is insufficient RAM, with pages of data transferred between the two as they are needed.” Check: where does virtual memory physically exist?In secondary storage — on the hard disk drive or solid-state drive.
- 22. “Virtual memory always improves performance.” Why wrong Every page transfer costs time, because secondary storage is slower than RAM. Using virtual memory heavily makes a machine slower, not faster. Correct model Virtual memory lets programs continue running when RAM is full, instead of stopping. The correct comparison is “slow but still working” against “unable to continue” — never against “faster”. Exam-safe “Virtual memory allows programs to continue running when RAM is insufficient, but because secondary storage is slower than RAM, frequent page transfers reduce performance.” Check: a computer is slow because it is using virtual memory heavily. Does a bigger hard disk fix it?No. More RAM is needed, so that fewer pages have to be transferred at all. A bigger disk only makes the slow store larger.
Questions students ask about RAM
What is the difference between RAM and ROM?
RAM (random access memory) is volatile primary storage that holds the programs and data currently in use, and can be both read from and written to; its contents are lost when power is removed. ROM (read only memory) is non-volatile primary storage that holds instructions, such as the start-up instructions, which must remain when the power is off, and is read from during normal operation. A computer needs both: without RAM there is nowhere to work, and without ROM there is nothing to tell the machine what to do when it is first switched on.
Why does a higher clock speed not always mean a faster computer?
A higher clock speed can allow more processing operations per second, but overall performance also depends on the number of cores, the size of the cache, and what the software is actually doing. A CPU with many cores only benefits from them if the software can divide its work between them, and cache reduces how often the CPU has to wait for the slower RAM. Higher clock speed also increases power consumption and heat, so it is only one of several factors.
Why is virtual memory not simply extra RAM?
Virtual memory is an area of secondary storage used as though it were RAM when there is not enough physical RAM for the programs and data in use; pages of data are transferred between RAM and virtual memory as they are needed. No physical memory has actually been added, and because secondary storage is much slower than RAM, frequent page transfers reduce performance rather than improving it. Virtual memory lets programs keep running when RAM is full instead of stopping, but it does not make the computer faster.

