Skip to content
Related Articles

Related Articles

UGC-NET | UGC NET CS 2015 Jun – II | Question 7
  • Last Updated : 11 May, 2018
GeeksforGeeks - Summer Carnival Banner

Consider a full – adder with the following input values:
(a)x = 1, y = 0 and Ci(carry input) = 0
(b)x = 0, y = 1 and Ci = 1
Compute the values of S(sum) and Co (carry output) for the above input values.

(A) S = 1, Co = 0 and S = 0, Co= 1
(B) S = 0, Co =0 and S =1, Co = 1
(C) S = 1, Co = 1 and S = 0, Co = 0
(D) So = 0, Co = 1 and S = 1, Co = 0


Answer: (A)

Explanation: In full adder:
For input x, y and Ci
So = x ⊕ y ⊕ Ci
Co = xy + Ci(x + y)
For x = 1, y = 0 and Ci(carry input) = 0
i.e. So = 1 ⊕ 0 ⊕ 0 = 1.
Co = 1*0 + 0(1 + 0) = 0.
For x = 0, y = 1 and Ci = 1
i.e. So = 0 ⊕ 1 ⊕ 1 = 0
Co = 0*1 + 1(0 + 1) = 1.
So, option (A) is correct.

Quiz of this Question

Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.

My Personal Notes arrow_drop_up
Recommended Articles
Page :