8. 10111 is the two's complement representation of:

  1. -23
  2. -9
  3. -7
  4. +22
  5. +7

2 is CORRECT. Since 10111 is specified to be in 2's complement form, the leading (left-most) 1 indicates that the number which this code represents must be negative; thus, the positive number corresponding to 10111 may be obtained by computing the 2's complement of 10111 as follows: 2's[10111] = 01000+1=01001 = +9 Conclusion: 10111 = -9, negative because the left-most bit is a 1.

[ Go Back To Question 8 ]

[ Go Back To The Beginning Of Quiz ]