Cambridge AS Level Computer Science 9618 · 1.1 Data Representation

Q2 · 9618/12/M/J/21 Q6

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

Q29618/12/M/J/21original Q6Structured · 6 marks
Question 6 from 9618/12/M/J/21

Worked solution

(a)

ASCII uses 7 bits, so 27 = 128 characters. [1]

Extended ASCII uses 8 bits, so 28 = 256 characters. [1]

(b)

Write any two of these points:

Each character has its own unique code. [1]

Each letter in the word (H, O, U, S, E) is replaced by its code. [1]

The codes are stored in the same order as the letters in the word.

(c)(i)

49 ÷ 16 = 3 remainder 1, so the hexadecimal value is 31. [1]

(c)(ii)

The digits are in order, so 5 is 4 more than 1: 49 + 4 = 53. [1]

KEY IDEAA character set gives every character a unique code, and the codes for digits run in order.
TOTAL 6 marks

Official mark scheme

Mark scheme for 9618/12/M/J/21 question 6
VIDEO
▶ Whole paper

Video solution of the whole paper · by O/Alevel CS by Wasiq. 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.