GATE CS 2022 · Question 18 · Digital Logic · Multiple choice (MCQ) · 1 mark · −1/3 for a wrong answer

Let R1 and R2 be two 4-bit registers that store numbers in 2's complement form. For the operation R1+R2, which one of the following values of R1 and R2 gives an arithmetic overflow?

  1. (A) R1 = 1011 and R2 = 1110
  2. (B) R1 = 1100 and R2 = 1010
  3. (C) R1 = 0011 and R2 = 0100
  4. (D) R1 = 1001 and R2 = 1111
Answer

Answer (B)

Answer from the official GATE CS 2022 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes