9618/11/M/J/24 question 7: worked solution (May/June 2024, paper 11)
Show as plain textHide plain text
Cambridge AS Level Computer Science 9618 · 1.1 Data Representation Worked solution from the Information representation Paper 1 Theory Fundamentals booklet, Part 1 of 3. Q15 9618/11/M/J/24 original Q7 Structured · 3 marks 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 IDEA When 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 VIDEO ▶ Starts at Q7 (1:40:15) Starts at Q7 (1:40:15) · by Pseudocode Pro. Tap the picture to open it on YouTube.