Memory and storage average about 2.4 questions per Tier 2 paper, with 4 in the single CGL 2023 paper. SSC asks why DRAM must be refreshed, which ROM can be erased electrically, two-statement questions on RAM and ROM, what ROM stores, and backup ideas such as snapshots and incremental copies. Together with fundamentals, this is about a quarter of the Computer Knowledge section.
In brief
- Memory is organised as a hierarchy, from tiny fast registers at the top down to large slow tape and cloud storage at the bottom.
- As you go down the hierarchy, capacity grows and cost per bit falls, but speed falls too.
- Primary memory (RAM and ROM) is directly accessed by the CPU, while secondary storage such as HDDs and SSDs holds data permanently.
- RAM is volatile, so it loses its contents when power goes off, and it holds the programs and data in current use.
- ROM is non-volatile and holds the firmware, such as the BIOS or UEFI, that starts the computer.
- SRAM stores each bit in a flip-flop, needs no refresh and is fast and costly, so it is used for cache.
- DRAM stores each bit as charge on a tiny capacitor that leaks, so it must be refreshed thousands of times a second, and it is used for main memory.
- PROM can be written only once, EPROM is erased with ultraviolet light, and EEPROM is erased and rewritten electrically.
- Flash memory is a kind of EEPROM that erases in blocks and is used in pen drives, SSDs and memory cards.
- Cache memory keeps copies of frequently used data close to the CPU, in levels L1, L2 and L3.
- Virtual memory lets the operating system use part of the disk as if it were RAM, through paging.
- A hard disk stores data magnetically on spinning platters divided into tracks and sectors.
- An SSD has no moving parts and uses flash chips, so it is faster and more robust than an HDD.
- Optical discs are read by laser: a CD holds about 700 MB, a single-layer DVD 4.7 GB and a single-layer Blu-ray 25 GB.
- Magnetic tape gives only sequential access, but it is cheap and still used for large archives and backups.
- A good backup plan uses full, incremental or differential copies and the 3-2-1 rule.
Numbers to remember
| Number | What it is |
|---|---|
| 700 MB | typical CD capacity |
| 4.7 GB / 8.5 GB | single-layer and dual-layer DVD |
| 25 GB / 50 GB | single-layer and dual-layer Blu-ray |
| 1.44 MB | 3.5-inch floppy disk |
| about 64 ms | typical DRAM refresh period for every row |
| L1 < L2 < L3 | cache levels by size; L1 is the fastest |
| 5400 / 7200 rpm | common hard-disk spindle speeds |
| 405 nm | blue-violet laser wavelength of Blu-ray |
Key formulas and rules
- Speed: registers > cache > RAM > SSD > HDD > optical > tape
- Cost per bit falls and capacity rises down the list.
- RAM = volatile, read-write; ROM = non-volatile, firmware
- ROM holds the BIOS or UEFI.
- SRAM = flip-flop, no refresh, cache; DRAM = capacitor, refresh, main memory
- DRAM is denser and cheaper.
- PROM once; EPROM by UV; EEPROM electrically by byte; flash electrically by block
- Mask ROM cannot be changed.
- CD 700 MB; DVD 4.7 GB; Blu-ray 25 GB (single layer)
- Dual layer roughly doubles each.
- Disk access time = seek time + rotational latency + transfer time
- SSDs have no seek time.
- Incremental = since last backup; differential = since last full backup
- Incremental restores need the whole chain.
- 3-2-1 = 3 copies, 2 media, 1 off-site
- RAID is not a backup.
Common traps
- Saying DRAM is refreshed because of magnetic fields is wrong; it is refreshed because capacitor charge leaks.
- Calling ROM volatile is wrong.
- Saying ROM is used for temporary storage is wrong; RAM is used for that.
Solved examples
Q. What is the primary reason DRAM needs to be refreshed periodically? Options: To prevent data corruption caused by magnetic fields, To recharge the capacitors storing data bits, To clear unused data, To allow the CPU to access new data. (CGL 2024 Tier 2, 18 Jan 2025)
Answer: To recharge the capacitors storing data bits
Step 1: DRAM stores each bit as charge on a capacitor. Step 2: The charge leaks away within milliseconds. Step 3: A refresh reads and rewrites every row to restore the charge, so the answer is recharging the capacitors.
Q. Which of the following statements about computer memory is/are correct? 1. RAM is volatile memory, meaning it loses data when power is turned off. 2. ROM is used to store essential instructions required for the computer to boot. (CGL 2024 Tier 2, 18 Jan 2025)
Answer: Both 1 and 2
Step 1: RAM needs power to hold data, so statement 1 is correct. Step 2: ROM holds the BIOS or UEFI with the POST and boot loader, so statement 2 is correct. Step 3: Both are correct.
Q. Which of the following is an example of a type of ROM that can be electronically erased and reprogrammed multiple times? Options: EEPROM, PROM, EPROM, Mask ROM. (CGL 2024 Tier 2, 18 Jan 2025)
Answer: EEPROM
Step 1: Mask ROM and PROM cannot be erased. Step 2: EPROM is erased by ultraviolet light, not electrically. Step 3: EEPROM is Electrically Erasable, so it is the answer.
What the full notes cover
- The memory hierarchy
- Primary and secondary memory
- SRAM and DRAM
- The ROM family
- Cache and virtual memory
- Hard disks and SSDs
- Optical and portable media
- Backup devices and backup types
- How SSC asks this topic