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
- A.
Only a
- B.
a and b
- C.
a and c
- 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.