GATE / CS ARCHIVE

GATE CSE 2018 / QUESTION 4

Testing XOR and XNOR identities

Digital Logic · Boolean Algebra & Logic Gates · Full GATE CSE 2018 paper

GATE 2018, Q4 1 mark · MCQ
Report issue

Boolean Algebra & Logic Gates

Question 4, GATE 2018: Let ⊕ be XOR and ⊙ XNOR. Which identity is false? A ¬(P⊕Q)=P⊙Q; B (¬P)⊕Q=P⊙Q; C (¬P)⊕(¬Q)=P⊕Q; D (P⊕¬P)⊕Q=(P⊙¬P)⊙¬Q.
Tap to enlarge
Your answer
Answer & solution

Official answer: D

Method

XOR is 1 exactly when its inputs differ; XNOR is its complement. Complementing one input changes “different” to “equal”, proving B, while complementing both preserves whether they differ, proving C. In D simplify the inner gates first, rather than assuming associativity transfers between XOR and XNOR. A concrete counterexample is Q=0: the left evaluates to 1 and the right to 0, regardless of P.

Solution

In D, P XOR not-P=1, so the left side is not-Q. Meanwhile P XNOR not-P=0, and 0 XNOR not-Q=Q. The sides are opposite, so D is false. Complementing a single XOR input gives XNOR, while complementing both leaves XOR unchanged, validating the other identities.

Original paper, page 5 · Answer key