Open In App
Related Articles

ISRO | ISRO CS 2011 | Question 6

Improve
Improve
Improve
Like Article
Like
Save Article
Save
Report issue
Report
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

Last Updated : 20 Nov, 2018
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads