Questions: Overflow and Underflow Detection

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

In 8-bit two's complement, you add 80 + 60. The result is −116 and the carry-out bit from the MSB is 0. Which of the following best describes what happened?

ANo error occurred — the carry-out being 0 means the result is correct
BOverflow occurred because two positive numbers produced a negative result
CUnderflow occurred because the result is negative
DOverflow cannot occur with positive numbers, so this must be a hardware bug
Question 2 Multiple Choice

Which of the following additions in two's complement arithmetic can never produce an overflow, regardless of the operand values?

AAdding two large positive numbers
BAdding two large negative numbers
CAdding a positive number and a negative number
DAdding any number to zero
Question 3 True / False

In 8-bit two's complement, adding 100 + 50 produces −106. This is an overflow, and the hardware can detect it by observing that two positive inputs produced a negative output.

TTrue
FFalse
Question 4 True / False

If the carry-out bit from the most significant bit position is 1 after an addition, an overflow has definitely occurred.

TTrue
FFalse
Question 5 Short Answer

Explain why adding a positive number and a negative number in two's complement can never produce an overflow.

Think about your answer, then reveal below.