Skip to content
Related Articles

Related Articles

ISRO | ISRO CS 2011 | Question 6
  • Last Updated : 20 Nov, 2018

Evaluate (X xor Y) xor Y?
(A) All 1’s
(B) All 0’s
(C) X
(D) Y


Answer: (C)

Explanation: By taking a truth table, we can see the output:

X   Y     X xor Y    (X xor Y) xor Y
0   0       0             0
0   1       1             0
1   0       1             1
1   1       0             1 

Clearly the output depends on the value of X.

Alternate approach:
Through simplification of the expression, we can find the solution.

(X xor Y) xor Y
(XY' + X'Y) xor Y
(XY' + X'Y)'Y + (XY' + X'Y)Y'
(X' + Y)(X + Y') + XY'
XY + XY' = X(Y + Y') = X 


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 :