Skip to main content

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…

Consider the 8 -bit signed integers X,YX, Y and ZZ represented using the sign-magnitude form. The binary representations of XX and YY are as follows:
X:10110100Y:01001100 X: 10110100 \quad Y: 01001100
Which of the following operations to compute ZZ result(s) in an arithmetic overflow?

  1. A
    Z=X+YZ=X+Y
  2. B
    Z=X−YZ=X-Y
    Correct answer
  3. C
    Z=−X+YZ=-X+Y
    Correct answer
  4. D
    Z=−X−YZ=-X-Y

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.