NIMCET 2011 — Computer PYQ
NIMCET | Computer | 2011When two binary numbers are added, then an overflow will never occur if
Choose the correct answer:
- A.
Both numbers of same sign
- B.
The carry into the sign bit position and out of sign bit position are not equal
- C.
The carry into the sign bit position and out of sign bit position are equal
(Correct Answer) - D.
The carry into the sign bit position is 1
The carry into the sign bit position and out of sign bit position are equal
Explanation
Solution:
-
Let Cin be the carry into the sign bit (MSB) and Cout be the carry out of the sign bit.
-
Overflow condition: V=Cin⊕Cout
-
If Cin=Cout, then V=1 (Overflow occurs).
-
If Cin=Cout, then V=0 (No Overflow).
-
Overflow can only occur when adding two numbers of the same sign if the result has the opposite sign. It never occurs when adding numbers of opposite signs.
Correct Option: (c)
Explanation
Solution:
-
Let Cin be the carry into the sign bit (MSB) and Cout be the carry out of the sign bit.
-
Overflow condition: V=Cin⊕Cout
-
If Cin=Cout, then V=1 (Overflow occurs).
-
If Cin=Cout, then V=0 (No Overflow).
-
Overflow can only occur when adding two numbers of the same sign if the result has the opposite sign. It never occurs when adding numbers of opposite signs.
Correct Option: (c)
