If you add positive number plus negative number the over flow flag will be set if:

  1. The result is negative

  2. The result is positive

  3. The result is zero

  4. There is no over flow when adding ( ve) (-ve) numbers


Correct Option: D

AI Explanation

To answer this question, we need to understand how overflow occurs when adding positive and negative numbers.

Overflow occurs when the result of an arithmetic operation exceeds the maximum value that can be represented in the given number format. In the case of adding positive and negative numbers, the overflow flag will only be set if the result is outside the range of representable values.

When adding a positive number and a negative number, the result can be positive, negative, or zero, depending on the magnitudes of the numbers. However, the overflow flag will not be set because the result will always be within the range of representable values for signed numbers.

Therefore, option D is correct because there is no overflow when adding positive and negative numbers.

Find more quizzes: