GateAI
Number Representation and Arithmetic

GATE CSE 2026 Set 1 · Q22

MSQ1 markMedium

Time

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:01001100X: 10110100 \quad Y: 01001100 Which of the following operations to compute ZZ result(s) in an arithmetic overflow?

Select all that applyOne or more correct

Pick every correct option

Solution

Step-by-step verified solution

Official answer: B) Z = X - Y; C) Z = -X + Y

Number Representation and Arithmetic

In an 8-bit sign-magnitude representation:

  • The MSB is the sign bit (00 for positive, 11 for negative).

  • The remaining 77 bits represent the magnitude.

  • The range of representable numbers is from −(27−1)=−127-(2^7 - 1) = -127 to +(27−1)=+127+(2^7 - 1) = +127.

Given the binary representations:

  • For X=101101002X = 10110100_2:

    • Sign bit is 11 (negative).

    • Magnitude bits are 01101002=32+16+4=520110100_2 = 32 + 16 + 4 = 52.

    • Therefore, X=−52X = -52.

  • For Y=010011002Y = 01001100_2:

    • Sign bit is 00 (positive).

    • Magnitude bits are 10011002=64+8+4=761001100_2 = 64 + 8 + 4 = 76.

    • Therefore, Y=+76Y = +76.

Now, evaluate each operation for ZZ:

  • Option (A): Z=X+Y=−52+76=+24Z = X + Y = -52 + 76 = +24. Since +24∈[−127,+127]+24 \in [-127, +127], there is no overflow.

  • Option (B): Z=X−Y=−52−76=−128Z = X - Y = -52 - 76 = -128. Since −128<−127-128 < -127, this value cannot be represented in 8-bit sign-magnitude format, resulting in an overflow.

  • Option (C): Z=−X+Y=−(−52)+76=52+76=+128Z = -X + Y = -(-52) + 76 = 52 + 76 = +128. Since +128>+127+128 > +127, this value cannot be represented in 8-bit sign-magnitude format, resulting in an overflow.

  • Option (D): Z=−X−Y=52−76=−24Z = -X - Y = 52 - 76 = -24. Since −24∈[−127,+127]-24 \in [-127, +127], there is no overflow.

Thus, operations (B) and (C) result in arithmetic overflow.

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

This Number Representation and Arithmetic previous year question is Q22 of the GATE CSE 2026 Set 1 paper. Find more GATE CSE PYQs on Number Representation and Arithmetic in Digital Logic, or browse all GATE CSE PYQs.

Free diagnostic

Where do you stand for GATE?

Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Number Representation and Arithmetic PYQs now with no account.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

Number Representation and Arithmetic in GATE CSE

Number Representation and Arithmetic has 33 GATE CSE PYQs across 20 papers from 2012 to 2026. 3 of them are 1-mark MSQs like this one, and GATE CSE 2026 Set 1 has 2.

How GATE tests Number Representation and Arithmetic

More from GATE CSE 2026 Set 1

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2026 Set 1 · Q22 · MSQ

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

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.