Cambridge AS Level Computer Science 9618 · 1.1 Data Representation

Q12 · 9618/12/M/J/23 Q4

Worked solution from the Information representation Paper 1 Theory Fundamentals booklet, Part 1 of 3.

Q129618/12/M/J/23original Q4Structured · 6 marks
Question 4 from 9618/12/M/J/23

Worked solution

(a)

Number of values = 216 = 65 536 [1]

(b)

Write 120 as 8-bit binary: 0111 1000 [1]

Invert every bit to get the one's complement of -120: 10000111 [1]

(c)

A = 10, so A04 = (10 × 162) + (0 × 16) + 4

= 2560 + 0 + 4

Working shown [1]

Answer: 2564 [1]

(d)

Move every bit 2 places left, fill the right with 0s and lose the 2 left bits.

01001111 becomes 00111100 [1]

KEY IDEAUse powers of 2 and 16, invert the bits for one's complement and shift by moving bits.
TOTAL 6 marks

Official mark scheme

Mark scheme for 9618/12/M/J/23 question 4
VIDEO
▶ Starts at Q4 (46:23)

Starts at Q4 (46:23) · by Zafar Ali Khan (ZAK). 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.