Question
Let denote the Exclusive OR (XOR) operation. Let '1' and '0' denote the binary constants. Consider the following Boolean expression for over two variables and :
The equivalent expression for is
Official answer and solution
- Official answer
- D
- From
- Official GATE 2014 answer key
Solution
Apply the associative, commutative, and self-inverse algebraic properties of the XOR operation to simplify the Boolean expression.
Given expression:
-
Properties of XOR ():
- Commutative:
- Associative:
- Identity element:
- Inversion:
- Self-inverse:
-
Expand the Expression:
Because is associative and commutative, parentheses can be removed entirely: -
Count and Cancel Duplicate Terms:
- Constant : vanishes ().
- Variable : occurs 3 times:
- Variable : occurs 3 times:
- Constant : occurs 1 time.
-
Combine Simplified Terms:
This is the XNOR operation, corresponding to option D.
D
Simplifying 1 + P + Q as normal arithmetic or OR operation instead of modulo-2 XOR addition.
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2014 Computer Science and Information Technology (CS) Session 3
- Question
- 65 of 65, printed as CS Q.55
- 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.