Question
Let where are Boolean variables, and is the XOR operator. Which one of the following must always be TRUE?
Official answer and solution
- Official answer
- C
- From
- Official GATE 2016 answer key
Solution
Use the algebraic properties of the XOR operator to rearrange the given equation.
We are given:
Since XOR is commutative and associative, and , we can group the variables:
Recall that the complement of a Boolean variable can be written as . Thus:
Similarly:
Since , it follows immediately that:
This equality holds under all assignments satisfying the premise.
Evaluate the other options with a counterexample:
Let . Then , but:
- (A)
- (B)
- (D)
All three fail.
Therefore, option (C) must always be true.
C
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2016 Computer Science and Information Technology (CS) Session 2
- Question
- 18 of 65, printed as CS Q.8
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.