Cambridge AS Level Computer Science 9618 · 1.1 Data Representation

Q21 · 9618/12/M/J/25 Q2

Worked solution from the Information representation Paper 1 Theory Fundamentals booklet, Part 1 of 3.

Q219618/12/M/J/25original Q2Structured · 7 marks
Question 2 from 9618/12/M/J/25

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 IDEAUse place values for conversions; BCD stores each denary digit in 4 bits, which suits money and displays.
TOTAL 7 marks

Official mark scheme

Mark scheme for 9618/12/M/J/25 question 2
VIDEO
▶ Whole paper

Video solution of the whole paper · by Virtual Help. Tap the picture to open it on YouTube.

Solutions follow the official Cambridge mark schemes; marks are shown in grey. Videos are from other YouTube channels. Paper codes read component / series / year: M/J = May/June, O/N = October/November. Past-paper questions © UCLES, reproduced for classroom practice.