Evaluate (X xor Y) xor Y?

2011

Evaluate (X xor Y) xor Y?

  1. A.

    All 1's

  2. B.

    All 0's

  3. C.

    X

  4. 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.

Explore the full course: Isro