Consider the 8 -bit signed integers and represented using the sign-magnitude form. The binary representations of and are as follows:
Which of the following operations to compute result(s) in an arithmetic overflow?
GATE CSE 2026Digital Logic › Number Systems & RepresentationVerified
GATE CSE 2026 PYQ: Consider the 8 8 8 -bit signed integers X , Y X, Y X , Y and Z Z Z represented using the sign-magnitude…
- A
- BCorrect answer
- CCorrect answer
- D
Answer
(B, C) Z = X − Y Z=X-Y Z = X − Y; Z = − X + Y Z=-X+Y Z = − X + Y
Approach
Decode $X$ and $Y$ from 8-bit sign-magnitude, determine the representable range, then evaluate each operation and check whether the true result lies outside that range.
The operations yielding $Z=-128$ and $Z=+128$ require a magnitude of 128, which is outside the 7-bit magnitude capability of 8-bit sign-magnitude representation. Hence options B and C cause arithmetic overflow.
Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.