GATE 2014 CS (CS3) – Question 65
With XOR denoted $\oplus$ and binary constants 1,0, simplify $F(P,Q)=((1\oplus P)\oplus(P\oplus Q))\oplus((P\oplus Q)\oplus(Q\oplus0))$.
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (D) $\overline{P\oplus Q}$
Explanation
XORis associative and commutative, withx⊕x=0. Expanding all groups cancels pairs, leaving1⊕P⊕Q. XORwith1complements its argument, so the result is **complement(P⊕Q),D**, theXNORfunction. The parentheses do not change this parity calculation.