Preview

22 - Sign and Magnitude

 1. There are many schemes for ______________________________. One scheme is sign-magnitude

  representing negative integers using ASCII

  representing negative integers with patterns of bits

  representing positive integers using bytes

  representing negative bits using integer patterns

 2. Sign and Magnitude uses one bit (usually the leftmost) to indicate the sign. "0" indicates a ____ integer, and "1" indicates a _______ integer.

  integer divisible by 0 / integer divisible by 1

  positive / negative

  negative / positive

  0 integer / 1 integer

 3. The sign bit is used up and the rest of the bits are used for the _______________ of the number.

  magnitude

  negative part

  integer part

  shape

 4. Using an 8 bit sign and magnitude number, the leftmost bit is used for the sign, which leaves 1 bit for the magnitude

  FALSE

  TRUE

 5. In S&M, one pattern corresponds to "minus zero", 1000 0000. Another corresponds to "plus zero", 0000 0000

  TRUE

  FALSE

 6. For signed binary numbers the_____________________ is used as the sign bit.

  end most bit (EMB)

  final bit (FB)

  first most bit (FMB)

   most significant bit (MSB)

 7. One of the advantages of sign and magnitude is that we have an increased range (due to the sign bit which is used)

  TRUE

  FALSE

 8. 10001001 in S&M could represent:

  positive 8

  minus 8

  minus 9

  positive 9

 9. minus 2 would be represented in S&M in the following way:

  -1111

  -101

  1010

  -1110

 10. The following number would be _______ (it is in S&M representation)
1	1	0	0	1	0	1	0

  positive 128

  positive 74

  minus 74

  minus 120

 11. In sign and magnitude, the following binary number - 010100000 - is:

  positive

  both positive and negative

  Neither positive or negative

  negative

 12. In the following illustration, if the MSB was changed to '1', what would the number be?
signandmag_advanced.gif

  positive 54

  negative 53

  positive 52

  It would not be possible, as a 1 would corrupt the sequence

 13. The range of an 8-bit sign-magnitude integer is -128 to +128

  TRUE

  FALSE

 14. There are different sign-magnitude representations for +0 and -0

  FALSE

  TRUE

 15. Adding the negative of a number is not the same as subtraction in sign-magnitude. Different operations must be defined for addition and subtraction with sign-magnitude numbers

  FALSE

  TRUE