Memory and Storage: RAM, ROM, Cache and Disks for SSC

An exam-ready guide to computer memory for SSC CGL, CHSL and bank exams, covering RAM and ROM types, cache, registers, virtual memory, secondary storage, the memory hierarchy and file system basics, with worked calculations.

Reviewed by (19 years teaching)Written with AI helpReport a mistake

8 min read · Published 2 November 2026

Part of SSC CGL prep

The student's desk, bag and almirah

Imagine studying for an exam. The page you are reading right now is in your hands: those are the registers. The few books open on your desk are the cache. Your school bag next to you holds the rest of today's books: that is RAM. Your almirah at home holds every book you own: that is the hard disk. Things in your hands are fastest to use but there is very little room, while the almirah holds everything but takes time to reach. That is the whole memory hierarchy.

What this chapter tests

Questions from this chapter ask you to tell volatile from non-volatile memory, name the types of RAM and ROM, put memories in order of speed, recall capacities of discs, and name registers. A few questions need short calculations on address lines, capacities, hit ratio or clusters. All of these follow simple rules, which this guide lays out one by one.

Primary memory: RAM and ROM

RAM (Random Access Memory) holds the programs and data in use right now. It is fast but volatile, so its contents vanish when the power goes. ROM (Read Only Memory) is non-volatile and holds permanent start-up instructions such as the BIOS. Software stored in ROM is called firmware.

TypeFull formKey fact
SRAMStatic RAMFlip-flops, no refresh, fast and costly; used for cache
DRAMDynamic RAMCapacitors, must be refreshed, cheaper; used for main memory
PROMProgrammable ROMUser can write it only once
EPROMErasable Programmable ROMErased with ultraviolet light
EEPROMElectrically Erasable Programmable ROMErased and rewritten electrically; flash is a type of it
The pair EPROM and EEPROM is the favourite trap. One extra E means 'Electrically'. So EPROM is erased by UV light, and EEPROM is erased by electricity.

Cache, registers and virtual memory

Cache is a small, fast SRAM memory between the CPU and RAM that keeps frequently used data close at hand. L1 cache is inside each core and is the smallest and fastest, then come L2 and L3. Registers are even faster and sit inside the CPU itself. Virtual memory works the other way: when RAM is full, the operating system uses part of the hard disk as if it were extra RAM, which is slower but lets bigger programs run.

RegisterWhat it holds
Program Counter (PC)Address of the next instruction
Instruction Register (IR)The instruction being executed now
AccumulatorResults of ALU operations
Memory Address Register (MAR)Address of the memory location being used
Memory Data Register (MDR)Data being read from or written to memory

Quick check

Which register holds the address of the next instruction to be executed?

The memory hierarchy

Fastest and costliest per bit → Registers → Cache (L1, L2, L3) → RAM → Secondary storage (SSD, hard disk, tape) → Slowest, cheapest per bit and largest.

Secondary storage

CategoryExamplesTypical capacity facts
MagneticHard disk, magnetic tape, floppy diskFloppy (3.5-inch HD) 1.44 MB; tape is sequential access
OpticalCD, DVD, Blu-rayCD 700 MB, DVD 4.7 GB, Blu-ray 25 GB (single layer)
FlashPen drive, memory card, SSDNo moving parts; non-volatile

Short calculations

Worked example: address lines

A memory chip has 16 address lines, and each location holds 1 byte. Find its capacity.

Number of locations = 2¹⁶ = 65,536.

Capacity = 65,536 bytes = 65,536 ÷ 1024 = 64 KB.

In reverse, 1 MB = 2²⁰ bytes needs 20 address lines.

Worked example: cache hit ratio

Out of 800 memory requests, 120 were misses.

Hits = 800 − 120 = 680.

Hit ratio = 680 ÷ 800 = 0.85, and miss ratio = 120 ÷ 800 = 0.15.

Check: 0.85 + 0.15 = 1.

Quick check

How many 512 MB memory modules make 4 GB of RAM?

Disks and file systems

How a file lands on a disk

  1. 1Each platter surface is divided into concentric circles called tracks.
  2. 2Each track is cut into sectors, the smallest pieces the disk reads or writes.
  3. 3The file system groups sectors into clusters and gives each file whole clusters, rounding up.
  4. 4So with 4 KB clusters, a 10 KB file takes 3 clusters = 12 KB, and the extra 2 KB is slack space.
File system facts to remember: Windows installs on NTFS; FAT32 is common on pen drives but cannot hold a single file bigger than 4 GB; ext4 belongs to Linux and APFS to macOS.

Quick check

With 4 KB clusters, how much disk space does a 9 KB file occupy?

  • RAM is volatile; ROM and secondary storage are non-volatile.
  • DRAM needs refresh and is used for main memory; SRAM is faster and used for cache.
  • PROM writes once, EPROM erases with UV, EEPROM erases electrically.
  • Speed: registers > cache > RAM > hard disk.
  • Program Counter = next instruction address; accumulator = ALU results.
  • Virtual memory uses the hard disk as extra RAM.
  • CD 700 MB, DVD 4.7 GB, Blu-ray 25 GB, floppy 1.44 MB.
  • n address lines give 2ⁿ locations.
  • Files use whole clusters; FAT32 caps a single file at 4 GB.
Exam strategy: most questions here are one-line facts, so revise the two tables (RAM and ROM types, storage capacities) the night before. For the few calculations, write everything as a power of 2 before dividing, and you will not lose the mark to a unit mix-up.

Ready to test yourself?

Lock it in with the practice test for this chapter.

Take the practice test

Keep studying

See all SSC CGL study material →