0984

Memory and Storage

Hardware · 4 question types

Exam Frequency Analysis

Past paper frequency (2018 to 2024)

This topic accounts for approximately 5% of your exam marks.

stable
Rare
Stable5%

RAM vs ROM and primary vs secondary storage comparisons appear regularly.

Every working computer keeps data in two distinct places:

  • Primary storage: the fast, working memory directly accessible to the CPU. Used while the program is running.
  • Secondary storage: the slower, long-term storage that holds programs and files when they are not in use, and that keeps its contents when the power is off.

A useful first comparison:

FeaturePrimary storageSecondary storage
SpeedVery fastMuch slower
CapacitySmall (typically gigabytes)Large (often terabytes)
Cost per gigabyteHighLow
Volatile?RAM is volatile; ROM is notAlways non-volatile
Directly accessible by CPU?Yes (the CPU reads from and writes to primary storage every cycle)No (data must be loaded into primary storage first)
Typical examplesRAM, ROM, cache, CPU registersHard disk drives, SSDs, USB flash drives, CDs, DVDs, Blu-rays

Computers need both. Primary storage is fast enough to keep up with the CPU, but it is too expensive (and usually too volatile) to hold everything forever. Secondary storage is cheap and persistent, but too slow for the CPU to use directly during the fetch-decode-execute cycle.

Memory hierarchy pyramid: registers and cache at the top (very fast, very expensive, small), RAM in the middle, then flash/USB, hard drives and tape backup at the bottom (slow, very cheap, very large capacity)
Source: Computer Memory Hierarchy by Wikimedia Commons