Chapter 5 of 13

Computer Memory and Data Representation

The memory hierarchy from registers to secondary storage, data unit conversions, and number system basics for binary data representation.

📖 ~14 min read 💻 SSC Computer Awareness

Introduction

Computer memory stores data and instructions at different speeds, costs, and capacities — arranged in a "memory hierarchy." This chapter also covers data measurement units and how computers represent information internally using binary.

Memory Hierarchy

Flowchart — Memory Hierarchy (Fastest/Smallest to Slowest/Largest)
CPU Registers (fastest, smallest, most expensive)
Cache Memory
Primary Memory (RAM)
Secondary Storage (HDD/SSD) — slowest, largest, cheapest per GB

RAM vs ROM

FeatureRAMROM
Full FormRandom Access MemoryRead-Only Memory
VolatilityVolatile (data lost when power is off)Non-volatile (data retained without power)
FunctionTemporary working memory for active programs/dataStores permanent, essential startup instructions (e.g., BIOS)
Read/WriteBoth read and writePrimarily read-only (though some variants allow limited writing — EPROM, EEPROM)

Types of RAM and ROM

TypeDescription
SRAM (Static RAM)Faster, more expensive, used for cache memory
DRAM (Dynamic RAM)Slower, cheaper, needs periodic refreshing; used as main system RAM
PROMProgrammable ROM — can be written once by the user
EPROMErasable PROM — can be erased using UV light and reprogrammed
EEPROMElectrically Erasable PROM — can be erased/reprogrammed electrically (used in modern flash memory)

Secondary Storage Devices

DeviceNote
HDD (Hard Disk Drive)Magnetic storage, larger capacity, slower, cheaper per GB
SSD (Solid State Drive)Flash-memory based, much faster, more expensive per GB, no moving parts
Optical DisksCD, DVD, Blu-ray — use laser technology to read/write data
Flash Drives (Pen Drives)Portable USB-based flash memory storage

Data Measurement Units

UnitEquivalent
BitSmallest unit — a single 0 or 1
Byte8 bits
Kilobyte (KB)1024 Bytes
Megabyte (MB)1024 KB
Gigabyte (GB)1024 MB
Terabyte (TB)1024 GB
Petabyte (PB)1024 TB
⚠️ Common Trap: Data units use base 1024 (2¹⁰), not 1000 — a common exam trap tests whether you know 1 KB = 1024 Bytes, not 1000 Bytes.

Number Systems Used in Computing

SystemBaseDigits Used
Binary20, 1
Octal80-7
Decimal100-9
Hexadecimal160-9, A-F
📌 Why Binary: Computers use the binary system because electronic circuits have two natural states — ON (1) and OFF (0) — making binary the most reliable way to represent and process data at the hardware level.
UPSC/SSC Focus: Memory hierarchy order (registers → cache → RAM → secondary storage) · RAM vs ROM (volatile vs non-volatile) · PROM/EPROM/EEPROM distinctions · Data unit conversions (base 1024) · Why computers use binary.

💡 Want More? Get the Full eBook

This free chapter covers the key concepts. For complete coverage with 500+ MCQs, mock tests, and previous year analysis — grab the premium eBook.

📚 Browse Premium eBooks →