Difficulty: Easy
Correct Answer: the inputs are unequal
Explanation:
Introduction / Context:
The exclusive-OR (XOR) gate is central to parity generation, adders, and data comparison circuits. Knowing its defining condition helps when analyzing arithmetic logic units and error-checking networks.
Given Data / Assumptions:
Concept / Approach:
The canonical expression for XOR is X = A * NOT B + NOT A * B. This evaluates to 1 when the inputs differ (one HIGH, one LOW). When both are the same (both 0 or both 1), each product term becomes 0, yielding X = 0.
Step-by-Step Solution:
Case A=0, B=0 → X = 0 * 1 + 1 * 0 = 0.Case A=0, B=1 → X = 0 * 0 + 1 * 1 = 1.Case A=1, B=0 → X = 1 * 1 + 0 * 0 = 1.Case A=1, B=1 → X = 1 * 0 + 0 * 1 = 0.
Verification / Alternative check:
XOR may be viewed as “inequality detector.” If A ≠ B, output is 1; if A = B, output is 0. This matches the gate’s symbol and widespread usage in comparators.
Why Other Options Are Wrong:
Common Pitfalls:
Final Answer:
the inputs are unequal
Discussion & Comments