Data Representation · 4 question types
Past paper frequency (2018 to 2024)
This topic accounts for approximately 12% of your exam marks.
Binary/hex conversion and binary arithmetic appear in every Paper 1. Consistently 8 to 15 marks.
The standard method is the place-value table:
Example — Convert the denary number 45 to binary.
| 64 | 32 | 16 | 8 | 4 | 2 | 1 |
|---|---|---|---|---|---|---|
| (too big) | 1 | 0 | 1 | 1 | 0 | 1 |
So denary 45 = binary 101101.
If the exam asks for an 8-bit answer, pad on the left with zeros: 00101101.
The reverse is simpler:
Example — Convert the binary number 01100011 to denary.
| 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
|---|---|---|---|---|---|---|---|
| 0 | 1 | 1 | 0 | 0 | 0 | 1 | 1 |
Add the columns where there is a 1: 64 + 32 + 2 + 1 = 99.
Quick sanity check: if a binary number ends in 1, the denary equivalent must be odd. If it ends in 0, the denary equivalent must be even.