GATE CS 2024, set 1 · Question 13 · Digital Logic · Multiple choice (MCQ) · 1 mark · −1/3 for a wrong answer
Consider a system that uses 5 bits for representing signed integers in 2's complement format. In this system, two integers A and B are represented as A=01010 and B=11010. Which one of the following operations will result in either an arithmetic overflow or an arithmetic underflow?
- (A) A + B
- (B) A - B
- (C) B - A
- (D) 2 * B
Answer
Answer (B)
Answer from the official GATE CS 2024 answer key.
The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes