Previous: References
Up: 1 Introduction
Next: 1.6 Problems
Previous Page: References
Next Page: 1.6 Problems

1.5 Exercises

  1. Convert the following binary numbers into decimal values:
    0000 0100 0110 1001
         0011 0001 0111 1111
         0101 0101 0101 0101

  2. Convert the following octal numbers into decimal:
    000345
         000111
         000777

  3. Convert the following hexadecimal numbers into decimal:
    1A
         FF
         21

  4. Convert the following decimal integer values into binary, octal, and hexadecimal:
    101
         324
         129

  5. Add the following binary numbers:
    0000 0100 0110 1001
         0011 0001 0111 1111
         0101 0101 0101 0101

  6. Add the following octal numbers:
    000345
         000111
         000777

  7. Add the following hexadecimal numbers:
    1A
         FF
         21

  8. How many distinct binary strings can be formed with n bits?

  9. Find the negative of the following binary numbers in a two's complement representation:
    0000 0100 0110 1001
         0011 0001 0111 1111
         0101 0101 0101 0101

  10. Represent the following in two's complement form using 16 bits:
    -29
          165
         -100

  11. What is the largest positive integer that can be stored in n bits, with one leading bit reserved for the sign bit? Explain. Negative integer? Assume two's complement representations.

tep@wiliki.eng.hawaii.edu
Mon Aug 15 11:23:22 HST 1994