ExamYard Lectures

Data storage units and file sizes

IGCSE Computer Science 0478 · Chapter 1.9, Storage units · 5-minute lecture

The teaching part (1 min) is free to watch. A free account opens the whole lecture: 4 practice questions, 2 real past-paper questions with the answers explained, the mistakes that lose marks, the full-marks tip, a one-card summary and a quick quiz.

What this lecture covers

  1. How big is a file?
  2. The smallest units
  3. The binary prefixes
  4. Remember the order
  5. Kibi or kilo?
  6. Converting units
Read the transcript of the teaching part

Last time

Before we start: last time, in Representing sound, you learned these points. Here they are again on one card. Keep them in mind, because today builds on them.

How big is a file?

A song, a photo, a whole film: everything on your phone takes up space. Cambridge wants you to measure that space in the right units, and to move between them without a mistake.

The smallest units

The smallest unit of data is the bit: one binary digit, a zero or a one. Four bits make a nibble. Eight bits make a byte, enough to store one ASCII character.

The binary prefixes

Above the byte, each unit is one thousand and twenty-four times the one before. One thousand and twenty-four bytes make a kibibyte. Then mebibyte, gibibyte, tebibyte, pebibyte and exbibyte, each one thousand and twenty-four times bigger. Why one thousand and twenty-four? It is two to the power ten, a round number in binary.

Remember the order

Here is a way to remember the order: bit, nibble, byte, then kibi, mebi, gibi, tebi, pebi, exbi. Cambridge often asks you to pick the largest from four of them.

Kibi or kilo?

A kilobyte is exactly one thousand bytes, but a kibibyte is one thousand and twenty-four. Cambridge uses the binary ones: kibi, mebi, gibi. This is why a five hundred gigabyte hard disk shows only about four hundred and sixty-six gibibytes on a computer.

Converting units

Converting is one rule. To go to a bigger unit, divide. From bits to bytes, divide by eight. From bytes to kibibytes, divide by one thousand and twenty-four. To go to a smaller unit, multiply.

How often it comes up

The whole chapter: Data Storage and Compression, Data Storage.

Chapter 1.9: Storage units

Also for IGCSE Computer Science 0478

Which topics come up most in IGCSE Computer Science 0478 past papers, counted from every paper since 2004: Paper 1 topic frequency, Paper 2 topic frequency.

The topical past-paper books: Paper 1, Paper 2.