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 Kaustav Basak (19 years teaching)Written with AI helpReport a mistake
8 min read · Published 2 November 2026
Part of SSC CGL prepThe 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.
| Type | Full form | Key fact |
|---|---|---|
| SRAM | Static RAM | Flip-flops, no refresh, fast and costly; used for cache |
| DRAM | Dynamic RAM | Capacitors, must be refreshed, cheaper; used for main memory |
| PROM | Programmable ROM | User can write it only once |
| EPROM | Erasable Programmable ROM | Erased with ultraviolet light |
| EEPROM | Electrically Erasable Programmable ROM | Erased and rewritten electrically; flash is a type of it |
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.
| Register | What it holds |
|---|---|
| Program Counter (PC) | Address of the next instruction |
| Instruction Register (IR) | The instruction being executed now |
| Accumulator | Results 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
Secondary storage
| Category | Examples | Typical capacity facts |
|---|---|---|
| Magnetic | Hard disk, magnetic tape, floppy disk | Floppy (3.5-inch HD) 1.44 MB; tape is sequential access |
| Optical | CD, DVD, Blu-ray | CD 700 MB, DVD 4.7 GB, Blu-ray 25 GB (single layer) |
| Flash | Pen drive, memory card, SSD | No 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
- 1Each platter surface is divided into concentric circles called tracks.
- 2Each track is cut into sectors, the smallest pieces the disk reads or writes.
- 3The file system groups sectors into clusters and gives each file whole clusters, rounding up.
- 4So with 4 KB clusters, a 10 KB file takes 3 clusters = 12 KB, and the extra 2 KB is slack space.
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.
Keep studying
8 min read
Computer Fundamentals: Generations, Devices and Number Systems for SSC
8 min read
Operating Systems and Software: Windows, Types and File Extensions for SSC
9 min read
MS Office for SSC: Word, Excel and PowerPoint Made Easy
9 min read
Internet, Networking and Cyber Security for SSC: The Complete Basics