CS Test 2 - Number Systems
CS Test 2 - Number Systems
19 March 2025
Name: ________________________
Surname: ________________________
Instructions to candidates:
❖ Answer all questions.
❖ Use only black or blue ink.
❖ Use both sides of the paper.
❖ Do not tear out any parts of this booklet.
❖ All work MUST be handed in.
❖ If you have used any additional sheets or booklets, please ensure that you have attached
those documents, to this booklet.
PERCENTAGE
1. Khazimla identifies four hexadecimal numbers.
Write the denary number for each of the three hexadecimal numbers:
2C ..........................................................................................................................................
101 ...........................................................................................................................................
FD ...........................................................................................................................................
Work Space
.........................................................................................................................................................
.........................................................................................................................................................
.........................................................................................................................................................
.........................................................................................................................................................
.........................................................................................................................................................
Stefan 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]
02 : 31 : 58
a. Write the 8-bit binary numbers that are currently stored for the Hours, Minutes and
Seconds. [3]
Hours
Minutes
Seconds
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. [3]
: :
.........................................................................................................................................................
.................................................................................................................................................... [1]
4. When a key is pressed on the keyboard, the computer stores the ASCII representation of
the character typed into main memory.
Location 1 A
Location 2 C
Location 1
Location 2
[2]
b. Show the contents of Location 1 and Location 2 as hexadecimal.
Location 1…...................................................................................................................
Location 2..................................................................................................................[2]
1 1 1 1 1 0 1 0 1 0 0 1 0 1 1 1
....................................................................................................................................... [4]
5. Explain why a programmer would prefer to see the contents of the locations displayed as
hexadecimal rather than binary, when debugging his program that reads the key presses.
...................................................................................................................................................
...................................................................................................................................................
………........................................................................................................................................
.............................................................................................................................................. [2]
1 1 0 0 0 1 1 1
+ 1 1 1 1 0 1 0 1
[3]
b. Describe the error that occurred when you added the binary numbers in part (a).
.............................................................................................................................................
.............................................................................................................................................
........................................................................................................................................ [3]
7. Humans use a denary number system and computers use a binary number system.
.............................................................................................................................................
.............................................................................................................................................
........................................................................................................................................ [1]
14...............................................................................................................................................
59...............................................................................................................................................
234….......................................................................................................................................
[3]
Work Space
.........................................................................................................................................................
.........................................................................................................................................................
.........................................................................................................................................................
.........................................................................................................................................................
.........................................................................................................................................................
9...............................................................................................................................................
26...............................................................................................................................................
65….......................................................................................................................................
[3]
Work Space
.........................................................................................................................................................
.........................................................................................................................................................
.........................................................................................................................................................
.........................................................................................................................................................
.........................................................................................................................................................
d. Add the binary values 00110011 and 01111000 using binary addition.
...................................................................................................................................................
...................................................................................................................................................
………........................................................................................................................................
.................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
………........................................................................................................................................
.............................................................................................................................................. [3]