Difficulty: Easy
Correct Answer: Using A as the control, when A = 0, X is the same as B. When A = 1, X is the inverse of B.
Explanation:
Introduction / Context:
The XOR function is invaluable for conditional inversion. Treating one input as a control line turns XOR into a 1-bit multiplexer between “pass-through” and “invert” behaviors, used in arithmetic units and data encoding.
Given Data / Assumptions:
Concept / Approach:
From the XOR truth table: X = A XOR B = (NOT A AND B) OR (A AND NOT B). This directly encodes pass-through for A = 0 and inversion for A = 1.
Step-by-Step Solution:
Verification / Alternative check:
Algebraic rewrite: X = B XOR A = B when A = 0; X = NOT B when A = 1. Hardware implementations of adders use this to conditionally complement operands.
Why Other Options Are Wrong:
Common Pitfalls:
Swapping the role of control and data, or confusing XOR with XNOR (which is equality, not inversion control).
Final Answer:
Using A as the control, when A = 0, X is the same as B. When A = 1, X is the inverse of B.
Discussion & Comments