Worked solution from the Data representation Paper 1 Computer Systems booklet, Part 1 of 3.
Write any three features of a low-level language:
It is close to machine code. [1]
It may use mnemonics. [1]
It may need an assembler to translate it. [1]
One line of code is one single instruction.
It is machine dependent.
It has direct access to memory locations and registers.
Write any three of these.
Write two different examples:
Assembly language [1]
Machine code [1]
Write any one drawback:
It is more difficult to understand than a high-level language. [1]
Other accepted answers: error prone; you must handle memory locations yourself; machine dependent.
Use place values 128, 64, 32, 16, 8, 4, 2, 1.
180 = 128 + 32 + 16 + 4, so write 10110100 [1]
201 = 128 + 64 + 8 + 1, so write 11001001 [1]
250 = 128 + 64 + 32 + 16 + 8 + 2. In 8 bits this is 11111010.
Add four leading zeros to make 12 bits: 000011111010 [1]
Split each value into two groups of 4 bits and change each group to hexadecimal.
10010011: 1001 = 9 and 0011 = 3, so write 93 [1]
00011101: 0001 = 1 and 1101 = D, so write 1D [1]
▶ Topic lesson
A lesson on this topic · by Mr Bulmer's Learning Zone. 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.