Physics (JEE/NEET)Very hardJEE Main pattern

In a logic circuit, X = NAND(A, B), Y = NAND(A, X), Z = NAND(B, X), and the output is Out = NAND(Y, Z). The circuit behaves as:

  1. A. an XNOR gate
  2. B. an AND gate
  3. C. an OR gate
  4. D. an XOR gate

Correct answer: D. an XOR gate

Truth table: A = B = 0 gives X = 1, Y = Z = 1, Out = 0; A = 0, B = 1 gives X = 1, Y = 1, Z = 0, Out = 1; similarly A = 1, B = 0 gives 1; A = B = 1 gives X = 0, Y = Z = 1, Out = 0. Output 1 only for unequal inputs: XOR. Stopping after two levels makes it look like OR.

More Modern Physics and Semiconductors questions

Exams that ask this topic