Cambridge AS Level Computer Science 9618 · 1.1 Data Representation

Q7 · 9618/13/M/J/22 Q1

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

Q79618/13/M/J/22original Q1Structured · 14 marks
Question 1 from 9618/13/M/J/22

Worked solution

(a)(i)

A character set is all the characters or symbols the computer can use. [1]

Each character has a unique number (binary or hexadecimal code). [1]

(a)(ii)

Character set 1: ASCII [1]

Character set 2: Unicode (or extended ASCII) [1]

Difference: ASCII uses 7 bits per character but Unicode uses up to 16 bits, so Unicode can represent many more characters. [1]

(a)(iii)

Use run-length encoding. [1]

Find groups of repeated characters and replace them with one copy of the character and the number of times it occurs. [1]

(a)(iv)

No data can be lost or deleted from a text file, but lossy compression removes some of the original data. [1]

The text file would be corrupted, or could not be opened or read. [1]

(b)

StatementAnswer
Hexadecimal 11 in denary17
Smallest denary number in unsigned 8-bit binary0
87 in BCD1000 0111
240 in hexadecimalF0
−20 in 8-bit two's complement1110 1100

Working: 11 hex = 16 + 1 = 17. 87 in BCD: 8 = 1000, 7 = 0111. 240 = 15 × 16, so F0. 20 = 00010100, invert 11101011, add 1 = 11101100.

11 in hexadecimal = 17 [1]

Smallest unsigned 8-bit number = 0 [1]

87 in BCD = 1000 0111 [1]

240 in hexadecimal = F0 [1]

−20 in two's complement = 1110 1100 [1]

KEY IDEAA character set maps characters to unique codes; lossless compression keeps all data, lossy does not.
TOTAL 14 marks

Official mark scheme

Mark scheme for 9618/13/M/J/22 question 1
VIDEO
▶ Whole paper

Video solution of the whole paper · by A Levels Academy Islamabad. 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.