2210 w16 QP 12
2210 w16 QP 12
2210 w16 QP 12
1. (a) Give two reasons why a programmer would choose to write code in a low-level language.
1 ................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
2 ................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
[2]
(b) High-level languages require either an interpreter or a compiler to translate the program.
Tick (3) to show which statements refer to interpreters and which refer to compilers.
[5]
1 .......................................................................................................................................................
2 .......................................................................................................................................................
3 .......................................................................................................................................................
4 .......................................................................................................................................................
[4]
[Turn over
4
2.A computer uses an 8-bit register.
128 64 32 16 8 4 2 1
0 1 1 1 0 0 0 0
...............................................................................................................................................[1]
(b) All the bits in the register are shifted one place to the right as shown below.
0 1 1 1 0 0 0 0
0 0 1 1 1 0 0 0
...............................................................................................................................................[1]
(c) State the effect the shift to the right had on the original denary number from part (a).
...............................................................................................................................................[1]
(d) The original number in part (a) is shifted one place to the right.
[1]
.......................................................................................................................................[1]
3
(e) Calculate the new denary number if the original binary number in part (a) is shifted
one place to the left.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...............................................................................................................................................[2]
3.Computers use a character set to convert text into binary. One-character set that can be used is
ASCII. Each letter in ASCII can also be represented as a denary value.
B U S
66 85 83
66
85
83
[3]
K E Y
01001011 ...............................................
01000101 ...............................................
01011001 ...............................................
[3]
Rivac 2019
2
4.A stopwatch uses six digits to display hours, minutes and seconds.
0 2 3 1 5 8
Hours Minutes Seconds
(a) Write the 8-bit binary numbers that are currently stored for the Hours, Minutes and Seconds.
Hours
Minutes
Seconds
[3]
(b) The stopwatch is started again and then stopped.
Hours 0 0 0 0 0 1 0 1
Minutes 0 0 0 1 1 0 1 0
Seconds 0 0 1 1 0 1 1 1
Write the denary values that will now be shown on the stopwatch.
Jafar remembers that hexadecimal is often used to represent binary values in error codes.
Convert the hexadecimal number in the error message into 12-bit binary.
[3]
6|Page
3
Rivac 2019