A computer needs memory to work and storage to keep things. Primary memory (RAM, ROM, cache) is fast and directly used by the CPU. Secondary storage (hard disk, SSD, pen drive, discs, tape) is larger, cheaper and permanent. Learn the units, then RAM and ROM, then the storage devices.
Memory hierarchy from registers and cache to RAM, SSD or HDD and optical discs or tape, getting larger, cheaper and slower
What is RAM?
RAM (Random Access Memory) is the working memory of a computer. It holds the programs and data that are in use right now, and it is volatile: everything in it is lost when the power goes off.
What is ROM?
ROM (Read Only Memory) is permanent memory that keeps its data even without power. It stores the permanent start-up instructions of the computer and is normally only read, not changed.
What is a hard disk?
A hard disk (HDD) is a secondary storage device that stores data on spinning magnetic platters, read and written by a moving head. It keeps data permanently and holds hundreds of GB to several TB.
What is a pen drive?
A pen drive (USB flash drive) is a small, portable storage device that uses flash memory and plugs into a USB port. It keeps data without power and can be rewritten many times.
What is a DVD?
A DVD (Digital Versatile Disc) is an optical disc that stores data, video or software and is read by a laser. A single-layer DVD holds about 4.7 GB, much more than a CD (about 700 MB).
Memory units
Memory units from bit and byte to kilobyte, megabyte, gigabyte and terabyte, each 1024 times the one before
Unit
Value
Bit
0 or 1, the smallest unit
Nibble
4 bits
Byte
8 bits; one character; the smallest addressable unit; 256 different values
KB, MB, GB, TB, PB
Each is 1024 times the one before
Conversions: going up the ladder, divide by 1024; going down, multiply by 1024. 4 GB = 4 x 1024 = 4096 MB. 3 KB = 3072 bytes. 1 KB = 8192 bits. A memory with n address lines holds 2^n locations (12 lines = 4096, 20 lines = 1 MB).
Trick: B-K-M-G-T = Big Kids Meet Giant Tigers.
RAM and ROM
RAM loses its data when power is off while ROM keeps its data, with the types and uses of each
RAM
ROM
Full form
Random Access Memory
Read Only Memory
Volatile?
Yes, forgets at power-off
No, keeps data
Use
Working memory for running programs
BIOS and start-up firmware
Types
SRAM (fast, costly, cache, no refresh), DRAM (cheaper, main memory, needs refreshing)
DDR = Double Data Rate. DIMM is for desktops, SO-DIMM for laptops. A DDR5 module does not fit a DDR4 slot. Dual-channel gives a wider path to the CPU.
Virtual memory uses disk space as extra RAM, which is slow. Slow computer with a busy disk? Add RAM.
Cache sits between the CPU and RAM and is built from SRAM.
Access time (latency) is how quickly memory answers. DDR4-3200 means 3200 million transfers per second.
Secondary storage
HDD, SSD and optical disc compared by mechanism, capacity and moving parts
Device
Key points
HDD
Spinning magnetic platters, a moving read/write head; tracks divided into sectors; speed in rpm; seek time is the head's travel time; shock-sensitive; defragmentation helps
SSD
Flash chips, no moving parts; faster, silent, shock-resistant; costlier per GB; no defragmentation needed
Pen drive, SD card
Flash memory; portable; flash cells wear after many writes
Sequential access; cheapest per GB; used for backups and archives
Quick Memory Notes
How the questions are asked
Units and calculation: convert with 1024, never 1000; bits need the extra x 8.
Volatile or not: RAM is volatile; ROM, disks and flash are not.
Compare devices: HDD versus SSD (moving parts, speed, cost, shock), tape for archives, pen drive for portability.
Order questions: hierarchy by speed (register, cache, RAM, disk), cost per GB (tape, HDD, SSD, RAM) and capacity (CD, DVD, Blu-ray).
Scenarios: dropped laptop, slow computer with full RAM, cheap archive, carrying 64 GB of videos, backup on more than one device.
Common mistakes
Using 1000 instead of 1024, or forgetting to multiply by 8 for bits.
Calling ROM volatile, or saying SRAM is cheaper than DRAM.
Mixing up EPROM (UV light) and EEPROM (electrical).
Saying an SSD needs defragmentation, or that tape gives random access.
Treating a backup on the same drive as a backup.
Memory and Storage Set 01
25 questions
Memory and Storage Set 02
25 questions
Memory and Storage Set 03
25 questions
Memory and Storage Set 04
25 questions
Memory and Storage Set 05
25 questions
Sample questions from this set
A preview with answers and explanations. Start the full set above for all questions, instant scoring and negative marking.
1.The smallest unit of data that a computer can store is the ______.
A.bit✓
B.byte
C.nibble
D.word
Explanation: Concept: A bit, short for binary digit, holds a single 0 or 1.
Why: Every larger unit, such as the byte, is built from bits.
Answer: bit → option A
Trap: A byte is a group of 8 bits, so it is larger.
2.The smallest addressable unit of memory in most computers is the ______.
A.bit
B.nibble
C.byte✓
D.kilobyte
Explanation: Concept: Memory is organised so that each byte has its own address.
Why: The CPU can pick a single byte, but not a single bit, by its address.
Answer: byte → option C
Trap: A bit is smaller, but it cannot be addressed on its own.
3.Which memory can the CPU access directly?
A.Magnetic tape
B.Primary memory✓
C.Optical disc
D.External hard disk
Explanation: Concept: Primary (main) memory is directly connected to the CPU.
Why: The CPU reads instructions and data from it while a program runs.
Answer: Primary memory → option B
Trap: Tape, discs and external disks must first be loaded into primary memory.