You are on page 1of 2

FACULTY OF SCIENCE AND TECHNOLOGY

COMPUTER ARCHITECTURE & ORGANIZATION BCS 111


TEST 2
1. (a) Given a number 21.812510 Write its equivalent as a Typical 32-bit
Floating point number (3 marks)
(b) Write the number in part (a) above as an INTEL / IEEE:
(i) Single precision Floating Point number (3 marks)
(ii) Double Precision Floating Point number (3 marks)

2. (a) Given a Typical 32-bit Floating Point Number, 83D20000, find its
equivalent in base 10 (3 marks)
(b) Given an INTEL/IEEE Floating Point Number, C5400000 find its equivalent in base
10 (3 marks)
(c) Assume two Thirty-two-bit Floating Point Numbers A = 83D20000 and B =
84630000
Find: (i) A + B (ii) A*B (6 marks)
(d) Assume two INTEL/IEEE Single Precision Floating Point Numbers A = 4570000
and B = C8300000, find (i) A+B (ii) A*B (6 marks)

3. (a) Express -789 as a BCD number (2 marks)


(b) Add 7683 + 2935 in BCD (2 marks)

4. (a) (i) Find postfix expressions corresponding infix expression


(a + (b * c)) / (d * e - f * g) (3 marks)

(ii) Find the infix expression corresponding infix expression


ab + cd + /efg + * - (3 marks)

6. (a) Prove the following:


(i) AB = A + B (3 marks)

(ii) A+B ≠ A+B (3 marks)


(b) (i) Use Hexadecimal to give the ASCII equivalents of the following
strings:VU Yes! (2 marks)

(ii) Interpret the following ASCII code.


1001010 1101111 1101000 1101110 (2 marks)

(c) Draw a logic diagram of a circuit whose output is

X = AB + A(BC + B) (3 marks)

You might also like