Questions on Integer Representations

  1. What is the 8-bit, unsigned representation for the decimal value:

    A. 0

    B. 12

    C. 64

    D. 1000

    E. -1
  2. What decimal value is represented by the 8-bit unsigned representation:

    A. 10000000

    B. 00001111

    C. 01111111
  3. What is the 8-bit, two's complement representation for the decimal value:

    A. 0

    B. 12

    C. 64

    D. 1000

    E. -1

    F. -18
  4. What is the two's complement representation for the largest magnitude, positive value that can be represented in 8 bits? What decimal value is being represented?
  5. What is the two's complement representation for the largest magnitude, negative value that can be represented in 8 bits? What decimal value is being represented?
  6. What is the 2's complement representation for the decimal value -2 in 6 bits? In 7 bits? In 8 bits? What operation is done on this representation to increase the number of bits, without changing the value being represented?
  7. What range of decimal integers can be represented by an n-bit two's complement representation?
Copyright © Karen Miller, 2007