Skip to content
Official PYQ · 2026

GATE CS 2026 Set 2 Q18 — Number Representations (Fixed and Floating Point)

Explain with AI

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

Select all correct options
View worked solution

Answer: B;D

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

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

An arithmetic overflow occurs if the result of an operation falls outside this range [−8,+7][-8, +7].

First, let's convert the given 44-bit two's complement numbers to their decimal equivalents:

  • N1=10112→−8+2+1=−5N1 = 1011_2 \rightarrow -8 + 2 + 1 = -5
  • N2=11012→−8+4+1=−3N2 = 1101_2 \rightarrow -8 + 4 + 1 = -3
  • N3=10102→−8+2=−6N3 = 1010_2 \rightarrow -8 + 2 = -6
  • N4=10012→−8+1=−7N4 = 1001_2 \rightarrow -8 + 1 = -7

Now, let's evaluate each option:

  1. N1+N2N1 + N2:
    −5+(−3)=−8-5 + (-3) = -8
    Since −8-8 lies within the range [−8,+7][-8, +7], no overflow occurs.
  2. N2+N3N2 + N3:
    −3+(−6)=−9-3 + (-6) = -9
    Since −9-9 is outside the range [−8,+7][-8, +7], an overflow occurs.
    Binary verification: 11012+10102=101112→011121101_2 + 1010_2 = 10111_2 \rightarrow 0111_2 (positive result +7+7 from adding two negative numbers).
  3. N3−N4N3 - N4:
    −6−(−7)=−6+7=+1-6 - (-7) = -6 + 7 = +1
    Since +1+1 lies within the range [−8,+7][-8, +7], no overflow occurs.
  4. N1+N4N1 + N4:
    −5+(−7)=−12-5 + (-7) = -12
    Since −12-12 is outside the range [−8,+7][-8, +7], an overflow occurs.
    Binary verification: 10112+10012=101002→010021011_2 + 1001_2 = 10100_2 \rightarrow 0100_2 (positive result +4+4 from adding two negative numbers).

Thus, the operations that result in arithmetic overflow are B and D.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Number Representations (Fixed and Floating Point) questions