- NEET
- 2026–27 pattern practice
- Physics
- Semiconductors
- Easy
Which logic gate gives an output of 1 only when its two inputs are different?
Modern Physics
Pick an option to check your answer.
Answer: D. Solution
The exclusive-OR gate is defined by . Its truth table gives 1 for inputs (0, 1) and (1, 0), and 0 for (0, 0) and (1, 1). So it outputs 1 exactly when the inputs differ.
Why not the others
- XNOR gives 1 when the inputs are the same.
- NAND gives 1 for every input except 1, 1, including 0, 0 where the inputs are equal.
- NOR gives 1 only for the input 0, 0.