GATE 2015 CS (CS3) – Question 16
Define $X\#Y=X\prime+Y\prime$ on Boolean variables. S1: (P#Q)#R=P#(Q#R). S2: Q#R=R#Q. Which hold?
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (B) S2 only
Explanation
The operator is NAND by De Morgan’s law, so it is commutative, proving S2. It is not associative: with P=0,Q=1,R=1, the left side is (0 NAND 1) NAND 1=0, while the right is 0 NAND (1 NAND 1)=1. Thus only S2, B.