When adding two 4-bit 2's complement numbers A and B, which of the following conditions are NECESSARY for an arithmetic overflow to occur?
["A","B","D"]
Step-by-Step Solution
Key idea: This is a bounding problem that tests the necessary conditions for overflow in 2's complement arithmetic. Overflow has specific detection rules based on sign bits.
Exam route: Apply the overflow detection rules to identify which conditions are necessary.
Step 1: Recall overflow rule: Overflow occurs ONLY when adding two numbers of the same sign, and the result has a different sign.
Step 2: Check option A: "Sign bits of A and B must be the same" - TRUE. Overflow can only happen when adding or . Adding mixed signs never overflows.
Step 3: Check option B: "Sign bit of sum must be different from operands" - TRUE. This is the exact condition: if operands have same sign but result has different sign, overflow occurred.
Step 4: Check option C: "Carry-out from MSB" - FALSE. In 2's complement, carry-out is always discarded and does NOT indicate overflow. This is a common trap.
Step 5: Check option D: "Sum must fall outside range " - TRUE. By definition, overflow means the result exceeds the representable range of the n-bit system.
Answer: A, B, D