Similar questions 3 more → · asked again: GATE 1998, Q2.8
Boolean Algebra & Logic Gates


Select all that apply
Answer & solution
Answer: D: NAND (no official key was published)
NAND(a, b)=¬(ab), unchanged when a and b are exchanged, so it is commutative. To refute associativity choose a=0, b=1, c=1. Then NAND(NAND(0, 1), 1)=NAND(1, 1)=0, whereas NAND(0, NAND(1, 1))=NAND(0, 0)=1. AND, OR and XOR are associative as well as commutative. A single counterexample suffices to disprove the NAND associativity identity for all triples.