Zero has two representations in
View worked solution
Answer: A;C
To determine which number systems have two representations for zero, let us analyze an -bit binary representation for each case:
-
Sign-Magnitude Representation:
- The most significant bit (MSB) represents the sign ( for positive, for negative), and the remaining bits represent the magnitude.
- Positive zero () is represented as:
- Negative zero () is represented as:
- Thus, there are two distinct representations for zero.
-
1's Complement Representation:
- Negative numbers are obtained by bitwise inverting the positive representation.
- Positive zero () is represented as:
- Negative zero () is represented as:
- Thus, there are two distinct representations for zero.
-
2's Complement Representation:
- Negative numbers are obtained by taking the 1's complement and adding .
- Positive zero () is represented as:
- Taking the 2's complement of yields . Discarding the carry bit beyond bits leaves .
- Thus, there is only one unique representation for zero.
Therefore, both Sign-magnitude (A) and 1's complement (C) have two representations for zero.
Free practice · Your answers on this page are not saved.
