- Practice
- About 14 min
- 5 practice questions
Memory, storage and units of data
Distinguish primary from secondary memory, order the units of data, and solve simple unit conversion questions.
If something looks wrong, please tell us.
Memory questions are the most frequent part of Computer Fundamentals. They test two ideas: which memory is fast and temporary versus slow and permanent, and how units like KB, MB and GB relate.
Primary and secondary memory
- RAM is volatile: its contents are lost when power goes off. The CPU uses it for the programs currently running.
- ROM is non-volatile: it keeps its contents without power and holds start-up instructions.
- Cache is a very small, very fast memory close to the CPU.
- Secondary storage (hard disk, SSD, DVD, pen drive) is permanent and much larger but slower.
Units of data
The smallest unit is a bit, a single 0 or 1. Eight bits make one byte. Using the common exam convention, each next unit is 1024 times the previous one.
| Unit | Equals |
|---|---|
| 1 byte | 8 bits |
| 1 KB | 1024 bytes |
| 1 MB | 1024 KB |
| 1 GB | 1024 MB |
| 1 TB | 1024 GB |
Worked examples
Example 1. How many bytes are in 2 KB? 2 x 1024 = 2048 bytes.
Example 2. How many MB are in 3 GB? 3 x 1024 = 3072 MB. And how many bits are in 4 bytes? 4 x 8 = 32 bits.
Going to a bigger unit: divide by 1024. Going to a smaller unit: multiply by 1024. Byte = 8 bits.
Key takeaways: RAM is temporary, ROM and disks are permanent, a byte is 8 bits and each larger unit is 1024 times the previous one.
Check your understanding
-
1. Which memory is non-volatile and holds start-up instructions?
- RAM
- Cache
- ROM
- Registers
Show answer
Answer: C. ROM keeps its contents without power and holds the start-up instructions.
-
2. How many MB are in 3 GB?
- 3000
- 1536
- 3072
- 384
Show answer
Answer: C. 3 x 1024 = 3072 MB.
-
3. How many bits are in 4 bytes?
- 32
- 4
- 16
- 64
Show answer
Answer: A. 4 x 8 = 32 bits.
-
4. Which is the smallest unit of data?
- Byte
- Kilobyte
- Nibble
- Bit
Show answer
Answer: D. A bit is a single 0 or 1; a byte is 8 bits.
-
5. Which is permanent and much larger than RAM but slower?
- Cache
- Secondary storage such as a hard disk
- Registers
- RAM itself
Show answer
Answer: B. Secondary storage keeps data without power and is larger but slower than RAM.
Sign in to keep track of the lessons you finish.