NIMCET 2019 Computer PYQ — With 4-bit 2's complement arithmetic, which of the following addi… | Mathem Solvex | Mathem Solvex
Tip:A–D to answerE for explanationV for videoS to reveal answer
NIMCET 2019 — Computer PYQ
NIMCET | Computer | 2019
With 4-bit 2's complement arithmetic, which of the following addition will result in overflow?
Choose the correct answer:
A.
1111+1101
(Correct Answer)
B.
0110+0110
C.
1101+0101
D.
0101+1011
Correct Answer:
1111+1101
Explanation
If the result of an arithmetic operation is too large (positive or negative) to fit into the resultant bit group, then arithmetic overflow occurs. Overflow occurs if 1. (+A) + (+B) = −C 2. (−A) + (−B) = +C
In the first option, we have 1111 + 1101 which results 1 1100 (As per 2's Complement addition rule). Here, 1 at the LSB of Result is overflow bit.
Explanation
If the result of an arithmetic operation is too large (positive or negative) to fit into the resultant bit group, then arithmetic overflow occurs. Overflow occurs if 1. (+A) + (+B) = −C 2. (−A) + (−B) = +C
In the first option, we have 1111 + 1101 which results 1 1100 (As per 2's Complement addition rule). Here, 1 at the LSB of Result is overflow bit.