Examo
PracticeAbout
Homecomputer-scienceData Storage and Compression
0984

Data Storage and Compression

Data Representation · 4 question types

Practise
Download PDF

0984 Topics

Number Systems12%
Text, Sound and Images5%
Data Storage and Compression4%
  1. Units of Data Storage
  2. Converting Between Units
  3. Calculating File Sizes
  4. Why Files Are Compressed
  5. Lossless Compression
  6. Run Length Encoding (RLE)
  7. Lossy Compression
  8. Lossy vs Lossless: Side-By-Side

Frequency legend

High (≥14%)
Above avg (10 to 13%)
Average (<10%)

Exam Frequency Analysis

Past paper frequency (2018 to 2024)

This topic accounts for approximately 4% of your exam marks.

stable
Rare
Stable4%

File size calculations and lossless vs lossy compression are regular 3 to 4 mark questions.

Every value held on a computer ultimately lives as bits. The units in the table below give names to bigger and bigger collections of bits, which is what file sizes are measured in.

UnitSymbolSizeIn bytes
Bitba single 1 or 01/8 byte
Nibble—4 bits1/2 byte
ByteB8 bits1 byte
KilobytekB1000 bytes1 000
MegabyteMB1000 kB1 000 000
GigabyteGB1000 MB1 000 000 000
TerabyteTB1000 GB1 000 000 000 000
PetabytePB1000 TB10¹⁵

The Cambridge syllabus uses the SI (decimal) convention where each prefix is a factor of 1000. This matches how storage manufacturers label disks (a "1 TB hard drive" really means 1 000 000 000 000 bytes).

The other convention: binary (kibibytes etc.)

In some contexts (particularly memory, RAM and operating-system file sizes), the older binary convention is used, where each prefix is a factor of 1024 (= 2¹⁰) instead of 1000. To avoid confusion, the binary units have different names:

Binary unitSymbolExact size
KibibyteKiB2¹⁰ bytes = 1 024
MebibyteMiB2²⁰ bytes = 1 048 576
GibibyteGiB2³⁰ bytes ≈ 1.07 × 10⁹
TebibyteTiB2⁴⁰ bytes
PebibytePiB2⁵⁰ bytes
ExbibyteEiB2⁶⁰ bytes

For exam questions, read the question carefully. If it says "1 kB = 1000 bytes" use 1000. If it says "1 KiB = 1024 bytes" use 1024. Both conventions appear in past papers.

Previous

Image File-Size Calculations

Next

Converting Between Units