Cambridge AS Level Computer Science 9618 · 1.1 Data Representation

Q23 · 9618/11/O/N/25 Q1

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

Q239618/11/O/N/25original Q1Structured · 7 marks
Question 1 from 9618/11/O/N/25

Worked solution

(a)(i)

Group in 4 bits: 1011 = B, 0011 = 3, 1010 = A.

Write: B3A [1]

(a)(ii)

BCD stores each denary digit in 4 bits: 1 = 0001, 0 = 0000, 8 = 1000.

Write: 0001 0000 1000 [1]

(a)(iii)

Method: flip the bits and add 1.

1111 1011 1100 flipped = 0000 0100 0011

Add 1 = 0000 0100 0100 = 64 + 4 = 68 [1]

The number was negative, so write: −68 [1]

Other correct way: −2048 + 1024 + 512 + 256 + 128 + 32 + 16 + 8 + 4 = −68.

(b)(i)

10110011 + 01111000 = 1 0010 1011.

Write: (1) 00101011 [1]

(b)(ii)

Name: overflow error. [1]

Description: the answer is too big or too small to fit in the number of bits available, for example it is larger than the maximum positive number the register can store (or smaller than the most negative number). [1]

KEY IDEAWork in groups of 4 bits for hexadecimal and BCD; overflow happens when the answer does not fit in the register.
TOTAL 7 marks

Official mark scheme

Mark scheme for 9618/11/O/N/25 question 1
VIDEO
▶ Whole paper

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