GateAI
Number Representation and Arithmetic

GATE CSE 2026 Set 2 · Q28

MSQ1 markEasy

Time

In a system, numbers are represented using 4-bit two's complement form. Consider four numbers N1=1011N1 = 1011, N2=1101N2 = 1101, N3=1010N3 = 1010 and N4=1001N4 = 1001 in the system. Which of the following operations will result in arithmetic overflow?

Select all that applyOne or more correct

Pick every correct option

Solution

Step-by-step verified solution

Official answer: B) N2 + N3; D) N1 + N4

Number Representation and Arithmetic

In a 4-bit two's complement representation, the range of representable numbers is:

[−24−1,24−1−1]=[−8,+7][-2^{4-1}, 2^{4-1}-1] = [-8, +7]

Converting the given 4-bit two's complement binary numbers to decimal:

  • N1=10112=−8+2+1=−5N1 = 1011_2 = -8 + 2 + 1 = -5

  • N2=11012=−8+4+1=−3N2 = 1101_2 = -8 + 4 + 1 = -3

  • N3=10102=−8+2=−6N3 = 1010_2 = -8 + 2 = -6

  • N4=10012=−8+1=−7N4 = 1001_2 = -8 + 1 = -7

Now, evaluating each operation:

  • (A) N1+N2=(−5)+(−3)=−8N1 + N2 = (-5) + (-3) = -8. Since −8∈[−8,7]-8 \in [-8, 7], this does not cause overflow.

  • (B) N2+N3=(−3)+(−6)=−9N2 + N3 = (-3) + (-6) = -9. Since −9<−8-9 < -8, the result falls outside the representable range, resulting in arithmetic overflow.

  • (C) N3−N4=(−6)−(−7)=+1N3 - N4 = (-6) - (-7) = +1. Since +1∈[−8,7]+1 \in [-8, 7], this does not cause overflow.

  • (D) N1+N4=(−5)+(−7)=−12N1 + N4 = (-5) + (-7) = -12. Since −12<−8-12 < -8, the result falls outside the representable range, resulting in arithmetic overflow.

Thus, operations B and D 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 Q28 of the GATE CSE 2026 Set 2 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 2 has 2.

How GATE tests Number Representation and Arithmetic

More from GATE CSE 2026 Set 2

Share this solution

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

GateAI solution cardGATE CSE 2026 Set 2 · Q28 · MSQ

In a system, numbers are represented using 4-bit two's complement form. Consider four numbers N1 = 1011, N2 = 1101, N3 = 1010 and N4 = 1001 in the system. Which of the following operations will result in 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.