You are on page 1of 3

Tutorial ②

1. Express each decimal number in binary as an 8-bit sign magnitude number:


(a) +100 (b) -123

2. Express each decimal number in binary as an 8-bit sign magnitude number in


the 1’s complement form:
(a) -99 (b) +115

3. Express each decimal number in binary as an 8-bit sign magnitude number in


the 2’s complement form:
(a) +101 (b) -125

4. Determine the decimal value of each signed binary number:


(a) Sign magnitude form: 01110100
(b) 1’s complement form: 10111111
(c) 2’s complement form: 10011001

5. Express each of following sign magnitude binary numbers in single precision


floating point format:
(a) 0111110000101011 (b) 100110000011000

6. Determine the values of the following single precision floating point


numbers:
(a) 1 10000001 01001001110001000000000
(b) 0 11001100 10000111110100100000000

7. Perform the following arithmetic operations with signed numbers:


(a) Conversion of decimal numbers to binary and addition using 2’s
complement form: 56 and -27
(b) Addition in 2’s complement form: 01110000 + 10101111
(c) Subtraction in 2’s complement form: 01100101 – 11101000
(d) Multiplication in 2’s complement form: 01101010 × 11110001
(e) Division in 2’s complement form: 01000100 ÷ 00011001

8. Convert each hexadecimal number to binary:


(a) 5916 (b) 5C816 (c) 8A9D16

9. Convert each binary to hexadecimal:


(a) 10111 (b) 10100110

10. Convert each hexadecimal to decimal:


(a) EB16 (b) 5C216

11. Convert each decimal to hexadecimal:


(a) 52 (b) 4019

12. Perform the following arithmetic operations:


(a) A016 + 6B16 (b) FD16 – 8816

13. Convert each octal number to decimal:


(a) 568 (b) 1638

14. Convert each octal number to binary:


(a) 3218 (b) 46538

15. Convert each binary number to octal:


(a) 1100 (b) 1011110

16. Convert each of the following decimal numbers to 8421 BCD:


(a) 21 (b) 69 (c) 156

17. Convert each of the BCD numbers to decimal:


(a) 00011000 (b) 10011000 (c)100101111000

18. Convert the decimal numbers to BCD, and perform the addition:
(a) 17 + 12 (b) 65 + 58 (c) 295 + 157

19. Convert each binary number to Gray code:


(a) 11011 (b) 1001010 (c) 1111011101110

20. Convert each Gray code to binary:


(a) 1010 (b) 00010 (c) 11000010001

You might also like