9618/11/O/N/24 question 1: worked solution (October/November 2024, paper 11)

Show as 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. Q18 9618/11/O/N/24 original Q1 Structured · 7 marks Worked solution (a) Write one: a tebibyte is 1024 gibibytes (2⁴⁰ bytes), but a gigabyte is 1000 megabytes (10⁹ bytes). Or: tebi is a binary prefix and giga is a decimal prefix. [1] (b)(i) Split into groups of 4 bits: 1100 0110 0111. 1100 = C, 0110 = 6, 0111 = 7. C67 [1] (b)(ii) The leftmost bit has place value −2048. −2048 + 256 + 128 + 16 + 4 + 2 + 1 = −2048 + 407 −1641 [1] (b)(iii) Each group of 4 bits is one denary digit: 0101 = 5, 0111 = 7, 0011 = 3. 573 [1] (c) 23 in binary is 00010111. Invert and add 1 to get −23 = 11101001. Add it to 01001010. 01001010 + 11101001 ---------- (1)00110011 Working shown, either adding −23 or direct subtraction [1] Ignore the carry out. Answer 0011 0011 [1] (d) Write one: the answer cannot be shown in the number of bits available , because it is bigger than the largest positive number or smaller than the most negative number the register can hold. [1] KEY IDEA Convert by place value or groups of 4 bits, and subtract by adding the two's complement. TOTAL 7 marks Official mark scheme VIDEO ▶ Topic lesson A lesson on this topic · by Craig'n'Dave. Tap the picture to open it on YouTube.