• Foundation
  • About 13 min
  • 5 practice questions

Data, information and units of memory

Tell data from information and convert between bits, bytes, KB, MB and GB using the 1024 rule.

If something looks wrong, please tell us.

Computers deal in data, and everything stored in them is measured in units. Conversion questions on bytes, KB and MB are easy marks once you know the ladder.

Data and information

Data is raw facts and figures with no meaning on their own, such as 45, 67 and 82. Information is data that has been processed so it is meaningful, such as 'The average mark is about 64.67.' Data goes into the computer; information comes out.

Bits and bytes

The smallest unit is the bit (binary digit), which is either 0 or 1. 8 bits make 1 byte, and one byte can store one character such as the letter A.

Memory units
UnitEquals
1 byte8 bits
1 KB (kilobyte)1024 bytes
1 MB (megabyte)1024 KB
1 GB (gigabyte)1024 MB
1 TB (terabyte)1024 GB

Going to a bigger unit, you divide by 1024; going to a smaller unit, you multiply by 1024. Some marketing material uses 1000 instead, but exams following computer science usually use 1024.

Worked examples

Example 1. How many bytes are in 3 KB? 3 x 1024 = 3072 bytes.

Example 2. How many KB are in 5 MB? 5 x 1024 = 5120 KB.

Example 3. How many bits are in 16 bytes? 16 x 8 = 128 bits.

Example 4. A file is 2048 KB. Express it in MB. 2048 / 1024 = 2 MB.

8 bits = 1 byte. Then every step up is 1024: KB, MB, GB, TB.

— Remember

Key takeaways

  • Data is raw; information is processed and meaningful.
  • 1 byte = 8 bits; every larger unit is 1024 times the previous.
  • To move to a bigger unit divide; to a smaller unit multiply.

Check your understanding

  1. 1. Which of these is information rather than raw data?

    1. 60, 70, 80
    2. The average of the three marks is 70
    3. Roll numbers 12, 15, 18
    4. The letters p, q, r
    Show answer

    Answer: B. Information is processed and meaningful; the statement about the average is the result of processing the marks.

  2. 2. How many bytes are there in 3 KB?

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

    Answer: D. 1 KB = 1024 bytes, so 3 x 1024 = 3072 bytes.

  3. 3. A file is 4096 KB. What is its size in MB?

    1. 2 MB
    2. 4 MB
    3. 40 MB
    4. 4096 MB
    Show answer

    Answer: B. Going to a bigger unit you divide by 1024: 4096 / 1024 = 4 MB.

  4. 4. How many bits are there in 32 bytes?

    1. 32
    2. 128
    3. 4
    4. 256
    Show answer

    Answer: D. 1 byte = 8 bits, so 32 x 8 = 256 bits.

  5. 5. Using the binary convention, how many MB make 1 GB?

    1. 1024
    2. 8
    3. 100
    4. 512
    Show answer

    Answer: A. Each step up the ladder is 1024 times the previous unit, so 1 GB = 1024 MB.

Sign in to keep track of the lessons you finish.

Next lesson → CPU, memory and storage

Privacy · Terms · Refunds · Delivery