Sample Test 1 (QP) - AA
Sample Test 1 (QP) - AA
8. Find the decimal equivalent of the 8-bit binary number 01101001 which is in sign and
magnitude representation.
(A) –105
(B) –101
(C) 105
(D) 101
(1 mark)
9. Find the 1’s complement of 1011101.
(A) 0100100
(B) 0100011
(C) 0100010
(D) 0111110
(1 mark)
10. What is the 2’s complement of –2310 in 8-bit representation?
(A) 10101010
(B) 10101010
(C) 11010101
(D) 11101001
(1 mark)
11. Given 1010010011 .112 + AB12.C16 = X 8 . Find the value of X.
(A) 123646.4
(B) 126646.4
(C) 116646.6
(D) 116464.6
(2 marks)
12. AB1D.3E16 − 2 A2C.1F16 =
(A) 80F1.1F16
(B) 8AF1.1F16
(C) 90F1.0F16
(D) 90FA.0F16
(2 marks)
13. Given 321.438 + 1010 .1101 2 = X 8 . Find the value of X.
(A) 33427
(B) 314.17
(C) 344.27
(D) 334.27
(2 marks)
14. Convert AB.1D16 to octal.
(A) 253.0728
(B) 153.0728
(C) 253.728
(D) 25.03728
(2 marks)
15. Find 001000112 -000110012 using 2’s complement.
(A) 00100000
(B) 00010101
(C) 00001010
(D) 00001010
(2 marks)
(a) Using two’s complement in 8-bit register, show how the computer would evaluate
− 2310 + 1210 .
(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 as a hidden bit.
(i) Show the floating-point representation of 15.625 in computer storage.
(6 marks)
(ii) Find the equivalent decimal value for the below floating-point representation.
11001011100 10000 2 ?
(4 marks)
QUESTION B2 (15 Marks)
(a) An advertising agency finds that, of its 170 clients, 115 use Television, 110 use Radio
and 130 use Magazines. Also 85 use Television and Magazines, 75 use Television and
Radio, 95 use Radio and Magazines, 70 use all three. Draw a Venn diagram to represent
the given data above.
(4 marks)
(b) Determine whether each of the following statement is true or false.
(i)
(ii) {1, 4, 9, 16, 25} {x | x Z + ,1 x 35, x is a perfect square}
(iii) {1, 2,3, 4,5} {1, 2,3, 4,5,6}
(3 marks)
(c) The universal set U and its subsets A and B are defined as follows.
U = {x: x is a positive integer less than or equal to 10}
A = {x: x is a multiple of 3 less than 10}
B = {x: x is an even integer less than 10}
(i) Determine the elements of U, A, and B.
(3 marks)
(ii) List the elements of the set A B .
(3 marks)
(iii) Find the power set P (A).
(2 marks)