Skip to content
Computer Aptitude · 1-2 Qs

Memory & Storage

Read the notes once, then practise. Every question shows the full solution right after you answer.

Study notes

Memory units (binary convention used in exams)

UnitEqual to
1 Nibble4 bits
1 Byte8 bits
1 Kilobyte (KB)1024 bytes (2¹⁰)
1 Megabyte (MB)1024 KB (2²⁰ bytes)
1 Gigabyte (GB)1024 MB (2³⁰ bytes)
1 Terabyte (TB)1024 GB
1 Petabyte (PB)1024 TB
1 Exabyte (EB)1024 PB
1 Zettabyte (ZB)1024 EB
1 Yottabyte (YB)1024 ZB

Order: bit < nibble < byte < KB < MB < GB < TB < PB < EB < ZB < YB. 1 KB = 1024 × 8 = 8192 bits. Disk makers often use decimal units (1 GB = 1000 MB), which is why a "1 TB" drive shows less space in Windows; strictly, the binary units are KiB, MiB, GiB.

Memory hierarchy (fastest to slowest)

LevelSpeedCost per bitCapacity
CPU registersFastestHighestBytes
Cache (L1, L2, L3) – SRAMVery fastHighKB to MB
Main memory (RAM) – DRAMFastMediumGB
SSD / Hard diskSlowerLowHundreds of GB to TB
Optical discs, magnetic tapeSlowestLowestLarge, offline/backup

Cache sits between the CPU and RAM and holds frequently used data. Virtual memory uses part of the disk (Windows pagefile.sys, Linux swap) when RAM is full – it is slower than real RAM.

Primary memory: RAM vs ROM

FeatureRAMROM
Full formRandom Access MemoryRead Only Memory
VolatilityVolatile (data lost on power off)Non-volatile
UseRunning programs and data currently in useFirmware such as BIOS/UEFI and boot code
Read/writeRead and writeMainly read

Types of RAM

  • SRAM (Static RAM) – flip-flops; no refresh needed; faster and costlier; used for cache.
  • DRAM (Dynamic RAM) – capacitor + transistor per bit; must be refreshed thousands of times a second; used as main memory. SDRAM and DDR (DDR4, DDR5) are DRAM types.

Types of ROM

TypeFull formHow it is written/erased
Mask ROM–Programmed at the factory; cannot be changed
PROMProgrammable ROMProgrammed once by the user
EPROMErasable PROMErased with ultraviolet light, then reprogrammed
EEPROMElectrically Erasable PROMErased electrically, byte by byte
FlashType of EEPROMErased electrically in blocks; used in pen drives, SSDs, memory cards

Secondary storage

  • Hard Disk Drive (HDD) – magnetic platters; data in concentric tracks divided into sectors; tracks at the same position on all platters form a cylinder. Seek time = time for the head to reach the track; rotational latency = waiting for the sector to come under the head. Speed in RPM (5400, 7200).
  • Solid State Drive (SSD) – flash memory, no moving parts, faster and shock-resistant.
  • Magnetic tape – sequential access; cheap, used for backup and archives.
  • Optical discs – read with a laser.
MediumTypical capacityLaser
Floppy disk (3.5 inch)1.44 MB– (magnetic)
CDAbout 700 MBInfrared (780 nm)
DVD single layer / dual layer4.7 GB / 8.5 GBRed (650 nm)
Blu-ray single layer / dual layer25 GB / 50 GBBlue-violet (405 nm)

Access methods: random/direct access (RAM, disks) vs sequential access (tape). Primary memory is directly accessible by the CPU; secondary storage is not and must be loaded into RAM first.

Exam tip: "UV light" means EPROM; "electrically" means EEPROM; "once" means PROM; "refresh" means DRAM; "cache" means SRAM.
Free SBI Clerk practice with solutionsStart free →