Skip to content
Related Articles

Related Articles

Improve Article

ISRO | ISRO CS 2013 | Question 17

  • Last Updated : 20 Nov, 2018
Geek Week

Two eight bit bytes 1100 0011 and 0100 1100 are added. What are the values of the overflow, carry and zero flags respectively, if the arithmetic unit of the CPU uses 2’s complement form?
(A) 0, 1, 1
(B) 1, 1, 0
(C) 1, 0, 1
(D) 0, 1, 0


Answer: (D)

Explanation:

Addition of two numbers = 1100 0011
                          0100 1100
                         -----------
                         10000 1111    

since, carry in and carry out of most significant bit is same, so, no overflow.
so, overflow flag = 0, carry flag = 1 and zero flag = 0.
Option (D) is correct.

Quiz of this Question

My Personal Notes arrow_drop_up
Recommended Articles
Page :