Which of the following can be used to represent negative integers?
Bias Method
The 2's complement Method
Both a and b
None of the above
Answers
none of the above is the right answer
Answer: Both a and b
Explanation:
There are three standard ways to represent negative numbers
1. 2's complement:
The 2's complement is formed by inverting every bit in the number and then 1 is added to the result.
2. Signed magnitude:
In signed magnitude, the very first bit represents positive sign if it 0 and negative if 1. The bits after the very first bit, are a representation of the magnitude i.e., an unsigned representation of the number.
3. Bias (or Excess) notation:
Bias notation is used in the golf game. In a golf game, every hole is assigned with a value called par value. Par value is nothing but an average of the count of strokes taken for completing the hole. The par may differ on each and every hole.
Now, if one completes the hole at par, then the score is unchanged. If one takes more shots for completing the hole, the points will be added to the total score. If one takes fewer shots for completing the hole, then the points will be deducted from your total score.