Zero has two representations in: a) Sign-magnitude representation b) 1's…

1999

Zero has two representations in:

a) Sign-magnitude representation
b) 1's complement representation
c) 2's complement representation
d) None of the above

  1. A.

    Only a

  2. B.

    a and b

  3. C.

    a and c

  4. D.

    a, b and c

Attempted by 82 students.

Show answer & explanation

Correct answer: B

The correct answer is: a and b.

In sign-magnitude representation, zero can be written as +0 and -0:
+0 = 000...0
-0 = 100...0
So sign-magnitude has two representations of zero.

In 1's complement representation, zero also has two forms:
+0 = 000...0
-0 = 111...1
So 1's complement also has two representations of zero.

In 2's complement representation, zero has only one representation: 000...0. The 2's complement of zero again gives 000...0.

Therefore, zero has two representations in sign-magnitude and 1's complement, i.e. a and b.

Explore the full course: Gate Guidance By Sanchit Sir