Memory and storage units
SOF ICSO · Computer Science · about 6 minutes
RAM is fast, temporary working memory that is lost when power goes off; ROM keeps its contents. Storage (HDD, SSD, pen drive) keeps files permanently.
Sizes go bit → byte → KB → MB → GB → TB, each 1024 times the last (in binary units).
The memory pyramid
Registers and cache are tiny but very fast; RAM is bigger and slower; storage is huge but slowest. The computer keeps what it needs right now as close to the CPU as possible.
Counting bytes
An uncompressed image of 1000 × 1000 pixels with 3 bytes per pixel needs 3,000,000 bytes, about 2.9 MB.
Worked examples
Example 1How many 4 MB songs fit on a 1 GB drive?
- 1 GB = 1024 MB.
- 1024 ÷ 4.
Answer: 256
See it move
Where marks are lost
- Using 1000 instead of 1024 when the question uses binary units.
- Saying ROM is lost when power is off.
Exam tips
- 8 bits = 1 byte; 1 KB = 1024 bytes.
- Cache is the fastest memory, inside or near the CPU.
- SSDs have no moving parts and are faster than hard disks.
Practice questions
Which memory loses its data when power is off?
How many bytes in 2 KB?
Which is the fastest?
More worked examples
Try each one first, then open the working.
5 byte = ? bits
Show the working
Start: Computers count in powers of 2.
1 byte = 8 bits.
Answer: 40
A 10 MB file over a 50 Mbps link. Seconds? (1 byte = 8 bits)
Show the working
Start: Bits ÷ bits per second.
Megabytes × 8 = megabits.
Answer: 1.6 s
How many copies of the largest file fit on an 8 GB pen drive? (1 GB = 1024 MB)
Show the working
Start: Convert GB to MB, then divide and round down.
8 × 1024 = 8192 MB; 8192 ÷ 450 = 18.2, so 18 whole copies.
Answer: 18
An image is 1024 × 600 pixels with 16-bit colour. How big is it, in KB? (1 KB = 1024 bytes)
Show the working
Start: Pixels × bits per pixel ÷ 8 ÷ 1024.
1024 × 600 × 16 ÷ 8 = 1228800 bytes ÷ 1024 = 1,200 KB.
Answer: 1200 KB
Practise more
New questions every time, at exam level
3 GB = ? MB
Learn it properly
Full chapters with animations, each with an “Explained simply” version.