Appendix Questions

Dustin Davis

Appendix A

1. Convert the following numbers to binary: 1984, 4000, 8192

1984 = 11111000000
2000 = 111110100000
8192 = 10000000000000

2. What is 1001101001 (binary) in decimal? In octal? In hexadecimal?

decimal = 617
octal = 1151
hex = 269

3. Which of the following are valid hexadecimal numbers? BED, CAB, DEAD, DECADE, ACCEDED, BAG, DAD.

All of them are valid.

4. Express the decimal number 100 in all radices from 2 to 9.

11001002
102013
12104
4005
2446
2027
1448
1219

11. Determine the rule for addition of nine's complement numbers and then perform the following additions.

0001
+9999
0001

0001
+9998
9999

9997
+9996
9994

9241
+0802
0044

 

14. Multiply 0111 and 0011 in binary.

  0111
 x0011
  0111
 0111+
 10101
  1010
 x0011
  1010
 1010+
 11110

 

Appendix B

1. Convert the following numbers to IEEE single-precision format. Give the results as eight hexadecimal digits.
    a. 9 = 41100000
    b. 5/32 = 3E200000
    c. -5/32 = BE200000
    d. 6.125 = 40C40000

 

2. Convert the following IEEE single-precision floating-point number from hex to decimal:
    a. 42E48000H = 114.25 or 457/4 or 114 1/4
    b. 3F880000H = 1.0625 or 17/16 or 1 1/16
    c. 00800000H = 2-126
    d. C7F00000H = -122880