Professional Documents
Culture Documents
1. A long-distance running race uses an electronic counter that counts each competitor
who finishes the race. The count is stored in binary in a 12-bit register. A denary value
of the count is displayed on a screen above the finish line. The screen currently displays
the below number.
0135
Convert the denary value to binary.
(A) 000010000111
(B) 100010001010
(C) 000100110111
(D) 100111100001
(1 mark)
2. Alex has a 16-bit binary value as that he needs to convert to hexadecimal value for his
project.
1101 1110 1010 1111
Convert the binary number to hexadecimal.
(A) FADE
(B) FACE
(C) BADE
(D) DEAF
(1 mark)
3. Convert 234.56 (base 8) to hexadecimal.
(A) AC.18
(B) 9B.A8
(C) 9C.B8
(D) AB.C8
(1 mark)
4. The two-digit hexadecimal number which has largest value is ___ which corresponds
to_______ decimal.
(A) AF, 256
(B) FF, 255
(C) FA, 255
(D) EF, 256
(1 mark)
5. Find the value of 11001.112 − 1011.1012 = X2
(A) 1110.001
(B) 1100.111
(C) 1000.011
(D) 1010.101
(1 mark)
6. The sign and magnitude representation of -14 in 8-bit representation is
(A) 00001110
(B) 10001110
(C) 10001111
(D) 00001111
(1 mark)
(2 marks)
SECTION B (30 MARKS)
ANSWER ALL QUESTIONS
(a) Using 2’s complement in 8-bit register, illustrate the steps of evaluating the following
arithmetic operation by the computer. Express your answer in denary / decimal base.
−4310 + 1310 .
(5 marks)
(b) A computer stores a number in a 16-bit register using floating-point representation.
Given that the first bit is reserved for the sign, followed by 6 bits for the exponent with
a bias of (+31) and the remaining bits are the mantissa has a hidden bit.
(i) Show the floating-point representation of −33.125 in computer storage.
(6 marks)
(ii) Find the equivalent decimal value for the below floating-point representation.
0100011111010000
Formula: (−1)S (1 + M ) 2E − B
(4 marks)
QUESTION B2 (15 Marks)
(a) The Venn diagram in Figure 1 shows the number of elements in three sets P, Q and R.