EEE107 Assignment - 02

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

EEE107

Assignment – 02
1. What does MSB and LSB stands for?

2. Answer the self-test (only up to question 14) in chapter 2 in the reference book,Floyd 11th
edition (page 116).

3. Perform the following binary additions:


(a) 1101 + 1010 (b) 10111 + 01101

4. Perform the following binary subtractions:


(a) 1101 - 0100 (b) 1001 – 0111

5. Perform the indicated binary operations: (a) 110 * 111 (b) 1100 ÷ 011
(c) (110 * 111) / 111 (d) (1100 ÷ 011) * 0110

6. Express the decimal number +9 and -9 as an 8-bit binary number in the sign-magnitude system.

7. Express the decimal number 250, 233 and 240 as an 8-bit binary number in the 1’s complement
system.

8. Express the decimal number 245 and 246 as an 8-bit binary number in the 2’s complement
system.

9. Read the section on signed number arithmetic’s and answer following problems
list the four cases when numbers are added.
a. Add following numbers. 00000111+00000100, 00001111+11111010,
00010000+11101000, 11111011+11110111.
b. Add the signed numbers 00100001 and 10111100.
c. Subtract the signed numbers 00110010 from 01110111.
d. What is the sign of the product when two negative numbers are multiplied?
e. Multiply 01111111 by 00000101.
f. What is the sign of the quotient when a positive number is divided by a negative
number?
g. Divide 00110000 by 00001100.
10. Convert the following binary numbers to hexadecimal:

(a) 00001111 (b) 10110011 (c) 110011101000

11. Convert the following hexadecimal numbers to binary: (a) AAB (b) 57 (c) 3A5 (c) F81B

12. Convert the decimal number 572, 100, 573 to hexadecimal.


13. Add the following hexadecimal numbers directly:
(a) 18 +34 (b) 3F+2A (c) 3F+2B
14. Subtract the following hexadecimal numbers:
(a) 75-21 (b) 94-5C

15. Convert the following octal numbers to decimal:

(a) 74 (b) 73 (c) 125

16. Convert the following decimal numbers to octal:

(a) 98 (b) 163

17. Convert the following octal numbers to binary:

(a) 46 (b) 723 (c) 5624

18. Convert the following binary numbers to octal:

(a) 110101110 (b) 1001100010 (c) 10111111001

19. What is the binary weight of each 1 in the following BCD numbers?

(a) 0010 (b) 1000 (c) 0001 (d) 0100

20. Convert the following decimal numbers to BCD:

(a) 6 (b) 15 (c) 273 (d) 849

21. What decimal numbers are represented by each BCD code?

(a) 10001001 (b) 001001111000 (c) 000101010111

22. Convert the following binary numbers to the Gray code:

(a) 1010 (b) 1100 (c) 11010

23. Convert the following Gray codes to binary:

(a) 1000 (b) 1010 (c) 11101

You might also like