2210/13/O/N/23 question 2: worked solution (October/November 2023, paper 13)
Show as plain textHide plain text
Cambridge O Level Computer Science 2210 · 1.1 Number systems Worked solution from the Data representation Paper 1 Computer Systems booklet, Part 1 of 3. Q16 2210/13/O/N/23 original Q2 Structured · 13 marks Worked solution (a) A binary number system has a base of 2 [1] It only uses two values , which are 1 and 0 [1] (b) Use the place values 128, 64, 32, 16, 8, 4, 2, 1 and write a 1 under each value you need. 14 = 8 + 4 + 2, so 1110 (or 00001110) [1] 59 = 32 + 16 + 8 + 2 + 1, so 111011 (or 00111011) [1] 234 = 128 + 64 + 32 + 8 + 2, so 11101010 [1] (c) Divide by 16: the whole number is the left digit and the remainder is the right digit (10 = A). 9 = 9 [1] 26 = 1 × 16 + 10, so 1A [1] 65 = 4 × 16 + 1, so 41 [1] (d) A positive number in two's complement is just its normal binary with a 0 in the left-most bit. 123 = 64 + 32 + 16 + 8 + 2 + 1 (suitable working) [1] Answer: 01111011 [1] (e) Add column by column from the right, carrying when 1 + 1 happens: 0 0 1 1 0 0 1 1 + 0 1 1 1 1 0 0 0 1 1 1 (carries) 1 0 1 0 1 0 1 1 Working shown, for example the carries [1] Left nibble 1010 correct [1] Right nibble 1011 correct [1] KEY IDEA Convert with place values (128, 64, 32 ...) and use groups of 4 bits for hexadecimal. TOTAL 13 marks Official mark scheme VIDEO ▶ Topic lesson A lesson on this topic · by Mr Bulmer's Learning Zone. Tap the picture to open it on YouTube.