Worked solution from the Information representation Paper 1 Theory Fundamentals booklet, Part 1 of 3.
Write one: a tebibyte is 1024 gibibytes (240 bytes), but a gigabyte is 1000 megabytes (109 bytes).
Or: tebi is a binary prefix and giga is a decimal prefix. [1]
Split into groups of 4 bits: 1100 0110 0111. 1100 = C, 0110 = 6, 0111 = 7.
C67 [1]
The leftmost bit has place value −2048.
−2048 + 256 + 128 + 16 + 4 + 2 + 1 = −2048 + 407
−1641 [1]
Each group of 4 bits is one denary digit: 0101 = 5, 0111 = 7, 0011 = 3.
573 [1]
23 in binary is 00010111. Invert and add 1 to get −23 = 11101001. Add it to 01001010.
01001010 + 11101001 ---------- (1)00110011
Working shown, either adding −23 or direct subtraction [1]
Ignore the carry out. Answer 0011 0011 [1]
Write one: the answer cannot be shown in the number of bits available, because it is bigger than the largest positive number or smaller than the most negative number the register can hold. [1]
▶ Topic lesson
A lesson on this topic · by Craig'n'Dave. Tap the picture to open it on YouTube.
Solutions follow the official Cambridge mark schemes; marks are shown in grey. Videos are from other YouTube channels. Paper codes read component / series / year: M/J = May/June, O/N = October/November. Past-paper questions © UCLES, reproduced for classroom practice.