Cambridge AS Level Computer Science 9618 · 1.1 Data Representation

Q15 · 9618/11/M/J/24 Q7

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

Q159618/11/M/J/24original Q7Structured · 3 marks
Question 7 from 9618/11/M/J/24

Worked solution

Add the three 8-bit numbers column by column, starting from the right. Write each carry above the next column (a column can carry 1 into the next).

   1111111   (carries)
   10011110
   01100001
+  00011001
-----------
(1)00011000

Check: 158 + 97 + 25 = 280, which is more than 255.

Carries clearly shown in the working [1]

Answer 0001 1000 [1]

The extra 9th bit carried out is shown and labelled as overflow, because the answer does not fit in 8 bits. [1]

KEY IDEAWhen an addition carries out of the leftmost bit, the answer does not fit in the available bits: that is overflow.
TOTAL 3 marks

Official mark scheme

Mark scheme for 9618/11/M/J/24 question 7
VIDEO
▶ Starts at Q7 (1:40:15)

Starts at Q7 (1:40:15) · by Pseudocode Pro. 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.