Cambridge O Level Computer Science 2210 · 1.1 Number systems

Q23 · 2210/12/M/J/25 Q1

Worked solution from the Data representation Paper 1 Computer Systems booklet, Part 1 of 3.

Q232210/12/M/J/25original Q1Structured · 13 marks
Question 1 from 2210/12/M/J/25

Worked solution

(a)

RAM is primary storage. Other primary storage is ROM or cache. Write one: ROM [1]

(b)

RAM is volatile, so its data is lost when the power is turned off. [1]

Also accepted: the data changes regularly and has to be replaced or updated all the time.

(c)

Use place values 128, 64, 32, 16, 8, 4, 2, 1.

19 = 16 + 2 + 1 = 10011 [1]

230 = 128 + 64 + 32 + 4 + 2 = 11100110 [1]

(d)

Change each hexadecimal digit into 4 bits.

35: 3 = 0011, 5 = 0101, so 0011 0101 [1]

8AD: 8 = 1000, A = 1010, D = 1101, so 1000 1010 1101 [1]

(e)

Add from the right, one nibble at a time, and write the carries.

Carries11
Number 101100101
Number 201110000
Answer11010101

Right nibble: 0101 + 0000 = 0101 [1]

Left nibble: 0110 + 0111 = 1101 [1]

Working shown, for example the carries (1 + 1 = 10 and 1 + 1 + 1 = 11) [1]

Answer: 11010101

(f)

An overflow happens when the answer is too big (greater than 255) [1]

so it cannot be stored in 8 bits (the bits available in the register). [1]

(g)

Write 22 in 8 bits: 00010110

Flip every bit: 11101001

Add 1: 11101001 + 1 = 11101010

Working method shown (flip the bits and add 1) [1]

Answer: 11101010 [1]

KEY IDEAConvert with place values and 4-bit groups; for two's complement flip the bits and add 1.
TOTAL 13 marks

Official mark scheme

Mark scheme for 2210/12/M/J/25 question 1
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.