Question
In a system, numbers are represented using 4-bit two's complement form. Consider four numbers , , and in the system. Which of the following operations will result in arithmetic overflow?
Official answer and solution
- Official answer
- B and D
- From
- Official GATE 2026 answer key
Solution
Convert each 4-bit two's complement number to decimal and check which results fall outside the representable range .
The representable range of 4-bit two's complement integers is . Converting the four operands to decimal:
Checking each operation:
- (A) (no overflow).
- (B) (overflow).
- (C) (no overflow).
- (D) (overflow).
Options (B), (D)
Treating () in option (A) as an overflow when is valid in 4-bit two's complement.
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2026 Computer Science and Information Technology - Session 2 (CS2)
- Question
- 28 of 65
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.