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?

  1. (A) A + B
  2. (B) A - B
  3. (C) B - A
  4. (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