9618/12/O/N/22 question 2: worked solution (October/November 2022, paper 12)
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. Q9 9618/12/O/N/22 original Q2 Structured · 5 marks 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. 1 0 0 0 1 1 0 0 + 0 1 0 0 0 1 1 0 = 1 1 0 1 0 0 1 0 Write: 11010010 [1] KEY IDEA Two'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 VIDEO ▶ Whole paper Video solution of the whole paper · by Audere Prep. Tap the picture to open it on YouTube.