Evaluate (X xor Y) xor Y?
2011
Evaluate (X xor Y) xor Y?
- A.
All 1's
- B.
All 0's
- C.
X
- D.
Y
Attempted by 308 students.
Show answer & explanation
Correct answer: C
To evaluate (X xor Y) xor Y, we use the properties of the XOR operation.
First, apply the associative property to regroup: X xor (Y xor Y).
Next, recall that any value XORed with itself equals 0 (Y xor Y = 0).
Finally, X xor 0 simplifies to X due to the identity property.
Thus, the expression evaluates to X.
A video solution is available for this question — log in and enroll to watch it.