Match the Exclusive-OR (XOR) operations (i) to (iv) with the results (p)…
Match the Exclusive-OR (XOR) operations (i) to (iv) with the results (p) to (s), where X is a Boolean input. {r@{\hspace{0.5em}}l@{\hspace{4em}}|@{\hspace{4em}}r@{\hspace{0.5em}}l} (i) & X \oplus X & (p) & 1 \\ (ii) & X \oplus \bar{X} & (q) & 0 \\ (iii) & X \oplus 0 & (r) & \bar{X} \\ (iv) & X \oplus 1 & (s) & X \\
- (i) - q, (ii) - r, (iii) - s, (iv) - p
- (i) - q, (ii) - r, (iii) - p, (iv) - s
- (i) - p, (ii) - s, (iii) - q, (iv) - r
- (i) - q, (ii) - p, (iii) - s, (iv) - r
Correct answer
D. (i) - q, (ii) - p, (iii) - s, (iv) - r
Explanation
For an XOR gate: $A \oplus B = \bar{A}B + A\bar{B}$. Evaluating each expression: i. X \oplus X = \bar{X}X + X\bar{X} = 0 + 0 = 0 \quad \rightarrow \mathbf{q} ii. X \oplus \bar{X} = \bar{X} \cdot \bar{X} + X \cdot X = \bar{X} + X = 1 \quad \rightarrow \mathbf{p} iii. X \oplus 0 = \bar{X} \cdot 0 + X \cdot \bar{0} = 0 + X \cdot 1 = X \quad \rightarrow \mathbf{s} iv. X \oplus 1 = \bar{X} \cdot 1 + X \cdot \bar{1} = \bar{X} + 0 = \bar{X} \quad \rightarrow \mathbf{r} The correct matching is: (i)--q, (ii)--p, (iii)--s, (iv)--r.$(D)\ (i) - q, (ii) - p, (iii) - s, (iv) - r$