Computer - Grade 9 - ClassTest
Computer - Grade 9 - ClassTest
Computer - Grade 9 - ClassTest
CANDIDATE
NAME
CLASS INDEX NO
49
123
200
Working Space.
2
2. The hexadecimal colour code #43B7F0 is stored in three 8-bit registers. Give the 8-bit
binary values for each part of the hexadecimal code. [6]
43
B7
F0
Answer:
(b) The contents of the register shifted one place to the right would give the result: [1]
Answer:
(c) The contents of the register shown at the start of question 3 are shifted two places to
the right. Show the contents of the register after this shift has taken place. [1]
Answer:
(d) State the effect this right shift has on the denary value in part (a). [3]
3
Answer:
4. A register in a computer contains binary digits. The contents of the register could
represent a binary integer. Convert the binary integer to denary and hexadecimal. [2]
0 0 1 1 0 1 1 1
Answer: Denary:
Hexadecimal:
5. (a) A long-distance running race uses an electronic counter that counts each competitor
who finishes the race. The count is stored as binary in a 12-bit register. A denary value
of the count is displayed on a screen above the finish line.
(i) The screen currently displays:
State the binary value that is currently stored to display the count shown. [2]
0039
Answer:
(ii) More competitors cross the finish line and the screen now displays:
0350
State the binary value that is currently stored to display the count shown.[2]
Answer:
(iii) At the end of the race the binary value stored is:
4
011011000111
Give the denary value that would be displayed on the screen at the end of the race.[2]
Answer:
Answer:
(f) The contents of the register shifted one place to the left would give the result: [1]
Answer:
(b) The contents of the register shown at the start of question 7 are shifted two places to
the left. Show the contents of the register after this shift has taken place. [1]
Answer:
(g) State the effect this left shift has on the denary value in part (a). [3]
Answer:
8. A register in a computer contains binary digits. The contents of the register could
represent a binary integer. Convert the binary integer to denary and hexadecimal. [2]
0 0 1 1 0 1 1 1
Answer: Denary:
6
Hexadecimal:
9. Carry out the following 16-bit binary additions and comment on your answers. [ 2 x 1
mark = 2 ]
(a) 0111 1111 1111 0001 + 0101 1111 0011 1001
10. Convert the following denary numbers into 8-bit binary numbers in the two’s
complement format: [ 3 x 2 = 6 marks ]
a) +120
b) -110
7
c) -42
11. Convert the following binary numbers (written in two’s complement format) into
denary numbers. [ 3 x 1 = 3 marks ]
(a)
1 0 1 1 0 1 1 1
(b)
0 0 1 0 0 1 1 0
(c)
1 0 1 1 1 1 0 1