• 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.

Units
UnitEquals
1 byte8 bits
1 KB1024 bytes
1 MB1024 KB
1 GB1024 MB
1 TB1024 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.

— Conversion rule

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. 1. Which memory is non-volatile and holds start-up instructions?

    1. RAM
    2. Cache
    3. ROM
    4. Registers
    Show answer

    Answer: C. ROM keeps its contents without power and holds the start-up instructions.

  2. 2. How many MB are in 3 GB?

    1. 3000
    2. 1536
    3. 3072
    4. 384
    Show answer

    Answer: C. 3 x 1024 = 3072 MB.

  3. 3. How many bits are in 4 bytes?

    1. 32
    2. 4
    3. 16
    4. 64
    Show answer

    Answer: A. 4 x 8 = 32 bits.

  4. 4. Which is the smallest unit of data?

    1. Byte
    2. Kilobyte
    3. Nibble
    4. Bit
    Show answer

    Answer: D. A bit is a single 0 or 1; a byte is 8 bits.

  5. 5. Which is permanent and much larger than RAM but slower?

    1. Cache
    2. Secondary storage such as a hard disk
    3. Registers
    4. RAM itself
    Show answer

    Answer: B. Secondary storage keeps data without power and is larger but slower than RAM.

Privacy · Terms · Refunds · Delivery