Units of memory
| Unit | Equals |
|---|---|
| 1 nibble | 4 bits |
| 1 byte | 8 bits |
| 1 kilobyte (KB) | 1024 bytes |
| 1 megabyte (MB) | 1024 KB |
| 1 gigabyte (GB) | 1024 MB |
| 1 terabyte (TB) | 1024 GB |
Types of memory
- Primary memory is directly accessed by the CPU.
- RAM – volatile; contents are lost when power is switched off.
- ROM – non-volatile; holds start-up instructions.
- Secondary memory stores data permanently: hard disks, SSDs, pen drives.
- Cache memory is a small, very fast memory between the CPU and RAM.