GATE CS 2022 | Question 18

Digital Logic › Number System · MCQ · 1 mark · Answer: B

  1. Question 18Digital Logicmcq1 mark
    R1 and R2 are 4-bit 2's complement registers. For R1+R2, which values give an arithmetic overflow?
    • A.
      R1 = 1011 and R2 = 1110
    • B.
      R1 = 1100 and R2 = 1010
      ✓
    • C.
      R1 = 0011 and R2 = 0100
    • D.
      R1 = 1001 and R2 = 1111

    Answer: B

    Solution

    Answer: (B) R1 = 1100 and R2 = 1010 Overflow in 2's complement occurs when two same-sign operands produce a different-sign result (range to ). and : sum , outside -> overflow. The others stay in range: (A) ok, (C) ok, (D) ok.

More GATE PYQ on Number System

All GATE CS Digital Logic PYQ →

Attempt GATE CS 2022 in real GATE exam mode

Full paper with a timer, the GATE interface and a topic-wise analysis — free.

Create free account →