Cambridge AS Level Computer Science 9618 · 1.1 Data Representation

Q9 · 9618/12/O/N/22 Q2

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

Q99618/12/O/N/22original Q2Structured · 5 marks
Question 2 from 9618/12/O/N/22

Worked solution

(a)(i)

The leftmost bit has the negative place value -128. Add the other place values: 10010110 = -128 + 16 + 4 + 2 = -106.

Write: -106 [1]

(a)(ii)

Split into groups of 4 bits: 1001 0110. 1001 = 9 and 0110 = 6.

Write: 96 [1]

(a)(iii)

Work out the denary value first: 10010101 = 128 + 16 + 4 + 1 = 149.

Write: 149 in denary [1]

Now write each denary digit as 4 bits: 1 = 0001, 4 = 0100, 9 = 1001.

Write: 0001 0100 1001 [1]

(b)

Add column by column from the right, carrying 1 when 1 + 1.

10001100
+01000110
=11010010

Write: 11010010 [1]

KEY IDEATwo's complement gives the top bit a negative value, hex uses groups of 4 bits and BCD codes each denary digit in 4 bits.
TOTAL 5 marks

Official mark scheme

Mark scheme for 9618/12/O/N/22 question 2
VIDEO
▶ Whole paper

Video solution of the whole paper · by Audere Prep. 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.