9618/13/M/J/22 question 1: worked solution (May/June 2022, paper 13)

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. Q7 9618/13/M/J/22 original Q1 Structured · 14 marks 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) Statement Answer Hexadecimal 11 in denary 17 Smallest denary number in unsigned 8-bit binary 0 87 in BCD 1000 0111 240 in hexadecimal F0 −20 in 8-bit two's complement 1110 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 IDEA A character set maps characters to unique codes; lossless compression keeps all data, lossy does not. TOTAL 14 marks Official mark scheme VIDEO ▶ Whole paper Video solution of the whole paper · by A Levels Academy Islamabad. Tap the picture to open it on YouTube.