Worked solution from the Data representation Paper 1 Computer Systems booklet, Part 1 of 3.
RAM is primary storage. Other primary storage is ROM or cache. Write one: ROM [1]
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.
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]
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]
Add from the right, one nibble at a time, and write the carries.
| Carries | 1 | 1 | ||||||
|---|---|---|---|---|---|---|---|---|
| Number 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 |
| Number 2 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 |
| Answer | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 1 |
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
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]
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]
▶ 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.