Which one of the following logic gates produces true output when both

Which one of the following logic gates produces true output when both the values of its input are same?

NAND
NOR
XNOR
XOR
This question was previously asked in
UPSC CBI DSP LDCE – 2023
Let’s look at the truth tables for the gates with inputs A and B and output Q:
– NAND: Q = NOT (A AND B). Output is true unless both A and B are true.
– NOR: Q = NOT (A OR B). Output is true only when both A and B are false.
– XNOR: Q = NOT (A XOR B). Output is true when A and B are the same (both 0 or both 1).
– XOR: Q = A XOR B. Output is true when A and B are different (one 0, one 1).

The question asks for the gate that produces true output when both inputs are the same. This matches the definition and truth table of the XNOR gate.

Understanding the basic logic operations and their truth tables is crucial for this question. XNOR (Exclusive NOR) outputs a true (1) when its inputs are identical (0,0 or 1,1).
XNOR is also known as the equivalence gate. It is often used in digital circuits for checking if two bits are equal. The XOR gate is the opposite of XNOR, producing a true output when inputs are different.