Similar questions 9 more →
Boolean Algebra & Logic Gates

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.