9618/12/M/J/25 question 2: worked solution (May/June 2025, paper 12)

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. Q21 9618/12/M/J/25 original Q2 Structured · 7 marks Worked solution (a) 558 = 512 + 32 + 8 + 4 + 2. Put it in 12 bits: 0010 0010 1110 Write binary: 0010 0010 1110 [1] Group in 4 bits: 0010 = 2, 0010 = 2, 1110 = E. Write hexadecimal: 22E [1] (b)(i) The leftmost bit is worth −128: −128 + 64 + 32 + 2 Write: −30 [1] (b)(ii) The smallest has only the sign bit set; the largest has every bit set except the sign bit. Smallest: 1000 0000 [1] Largest: 0111 1111 [1] (c) Any one application with its matching reason, for example: Application: financial or banking calculations [1] Justification: money uses only two decimal places and must be accurate, so BCD avoids rounding errors, which are hard to avoid when decimal values are stored in normal binary. [1] Other accepted pairs: electronic displays (only individual digits are shown, and conversion is easy); the date and time in the BIOS of a PC (conversion is easy); barcode systems (conversion is accurate). KEY IDEA Use place values for conversions; BCD stores each denary digit in 4 bits, which suits money and displays. TOTAL 7 marks Official mark scheme VIDEO ▶ Whole paper Video solution of the whole paper · by Virtual Help. Tap the picture to open it on YouTube.