Amateur Extra Question E7A09
E7A: Digital circuits: digital circuit principles and logic circuits; classes of logic elements; positive and negative logic; frequency dividers; truth tables
What logical operation is performed by a two-input exclusive NOR gate?
- It produces a 0 at its output only if all inputs are 0
- It produces a 1 at its output only if all inputs are 1
- It produces a 0 at its output if one and only one of its inputs is 1 (correct answer)
- It produces a 1 at its output if one and only one input is 1
Correct answer: C, It produces a 0 at its output if one and only one of its inputs is 1
Explanation
Exclusive OR (XOR) outputs 1 when its inputs differ, meaning exactly one input is 1. Exclusive NOR inverts that: it outputs 0 when exactly one input is 1, and 1 when the inputs match (both 0 or both 1). The two-input truth table is 00→1, 01→0, 10→0, 11→1. This is why XNOR works as an equality detector in digital comparators.
Why the other answers are wrong
- A, It produces a 0 at its output only if all inputs are 0: "0 only if all inputs are 0" is OR behavior; an XNOR outputs 1 when both inputs are 0, because they match.
- B, It produces a 1 at its output only if all inputs are 1: "1 only if all inputs are 1" is AND behavior; an XNOR also outputs 1 when both inputs are 0.
- D, It produces a 1 at its output if one and only one input is 1: A 1 output when one and only one input is 1 is XOR, before the inversion; an XNOR outputs 0 in that case.