Memory: Primary, Cache and Virtual
1. Memory: the study table and the cupboard
Imagine you are studying. The book you are reading now is on the table: right at hand, but there is little space. The other books are in the cupboard: lots of space, but they take time to fetch.
| Primary memory (table) | Secondary memory (cupboard) | |
|---|---|---|
| Examples | RAM, ROM, cache | hard disk, SSD, pen drive, CD |
| Speed | fast | slow |
| Cost (per GB) | costly | cheap |
| Size | small | large |
| To the CPU | connected directly | first brought into RAM |
| Other names | main, internal, semiconductor memory | auxiliary, external, backup |
- 2. The memory pyramid and volatile memory
- 3. RAM: SRAM and DRAM
- 4. ROM: permanent memory and its types
- 5. Cache: the fast buffer between the CPU and RAM
- 6. Virtual memory: borrowing from the disk when RAM runs out
- 7. Memory addresses: how many address lines?
- ⚠️ Where students go wrong most
The full note, 3 try-it tools and all 129 MCQs of this chapter come with the full subject: ₹99
or ⭐ all 14 subjects + every PYQ for ₹599 a year (Full GS Pass)
How the exam asked it
- Why refresh DRAM? To recharge the capacitors · ROM erased electrically many times? EEPROM · Main use of ROM? BIOS/firmware (SSC CGL 2024)
- Address lines for a 4K × 8 memory? 12 (SSC CGL 2025)
- Refreshed many times a second? DRAM · Fastest chip? SRAM · ROM is also called? Permanent storage (Allahabad HC)
- Cache works between? CPU and RAM · The CPU's internal memory? A group of registers · Fastest (CD-ROM, RAM, register, cache)? Register (Allahabad HC)
- Primary vs secondary? Faster and costlier · Auxiliary memory? Secondary storage · Cache and main memory with power off? Volatile (Allahabad HC)
Check yourself
1. Why does DRAM need to be refreshed from time to time?
Answer: B. To recharge the capacitors that hold the bits · DRAM keeps each bit as charge in a capacitor, which leaks. A refresh fills it up again.
2. Which ROM can be erased electrically and reprogrammed many times?
Answer: C. EEPROM · EEPROM = Electrically Erasable PROM. EPROM is erased with UV light; PROM can be written only once.
Asked in the exam (PYQ)
What is the primary reason DRAM needs to be refreshed periodically?
Answer: B. To recharge the capacitors storing data bits · DRAM stores each bit as a charge in a tiny capacitor, which slowly leaks, so it must be refreshed every few milliseconds. SRAM uses flip-flops and needs no refresh, which makes it faster and suitable for cache memory.
More PYQs from this chapter
- Which of the following statements about computer memory is/are correct? 1. RAM is volatile memory, meaning it loses data when power is turn…SSC CGL 2024 (Tier-II) · 18 January 2025 · Full paper
- Which of the following is an example of a type of ROM that can be electronically erased and reprogrammed multiple times?SSC CGL 2024 (Tier-II) · 18 January 2025 · Full paper
- ROM is primarily used for which of the following purposes?SSC CGL 2024 (Tier-II) · 20 January 2025 · Shift 1
- A computer system has a memory capacity of 4K x 8 bits. How many address lines are required on the address bus to identify every byte in th…SSC CGL 2025 (Tier-II) · 19 January 2026 · Full paper
- Which of the following memories refreshes many times per second?Allahabad High Court RO/ARO · 5 January 2022 · RO
- Internal memory in a CPU is nothing butAllahabad High Court RO/ARO · 20 December 2021 · ARO
All 55 PYQs of this chapter are on the mind map and with the PYQ Pass.
