GATE Computer ScienceHardGATE CS (PYQ pattern)

What is the minimum number of 2-input NAND gates needed to realise F = A XNOR B when only the true inputs A and B are available (no complemented inputs, no constants)?

  1. A. 5
  2. B. 4
  3. C. 6
  4. D. 3

Correct answer: A. 5

XOR takes 4 NAND gates, XNOR takes 5. An exhaustive search over every circuit with at most 4 gates finds none that realises XNOR.

More Digital Logic questions

Exams that ask this topic