Question 102

The sign-magnitude representation of −5 in 8 bits is:

  1. A11111011
  2. B11111010
  3. C00000101
  4. D10000101
Show answerHide answer

Correct answer: (D) 10000101

Explanation

Sign bit 1, magnitude 0000101. (11111011 is 2's complement.)

From DSSSB TGT Computer Science Full Mock Test 4

This is question 102 of DSSSB TGT Computer Science Full Mock Test 4. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.