Professional Documents
Culture Documents
Revision For Test 1 (QP)
Revision For Test 1 (QP)
(a) Using 2’s complement in 8-bit register, llustrate the steps of evaluating the following
arithmetic operation by the computer. Indicate if an overflow occurs.
3310 3310 .
(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 38.75 in computer storage.
(6 marks)
(ii) Find the equivalent decimal value for the below floating-point representation.
0100 0010 1100 0000
Formula: (1) S (1 M ) 2E B
(4 marks)
QUESTION B2 (15 Marks)
(a) A cable TV company has established a new online customer support service to help the
customers on any matter related to the company’s products. The company wants to
investigate the effectiveness of the new customer support service by selecting a sample
of 75 customers using the information available from the database.
The categories of products and the number of customers subscribing each category are
summarised in Table 1.
(i) Use M, S and N to represent the category of products such as Movies, Sports
and News respectively. Draw a Venn diagram to represent the above data.
(3 marks)
(ii) Find the number of customers who subscribe at least two products.
(1 mark)
(b) Determine whether each of the following statement is true or false.
(i) 0 {}
(ii) {3,6,9,12,15} {x | x N ,1 x 20, x is a multiple of 3}
(iii) {0, 2,5, 7,11} {Hexadecimal number system}
(3 marks)
(c) The universal set U and its subsets A and B are defined as follows.
U = {x: x is an odd positive integer less than or equal to 15}
A = {x: x is a multiple of 3 greater than 4}
B = {x: x is a prime number less than 12}
(i) Determine the elements of U, A, and B.
(3 marks)
(ii) From part (c) (i), show that A B B ' A .
(4 marks)
(iii) Find the cardinality of power set P (B).
(1 mark)