\[\begin{array}{|c|c|c|}\hline A & B & A \text{ XOR } B \\ \hline 0 & 0 & 0 \\ 0 & 1 & 1 \\ 1 & 0 & 1 \\ 1 & 1 & 0 \\ \hline \end{array}\]
\[\begin{array}{|c|c|c|}\hline A & B & A \text{ XOR } B \\ \hline 0 & 1 & 1 \\ 0 & 1 & 1 \\ 1 & 0 & 1 \\ 1 & 1 & 0 \\ \hline \end{array}\]
\[\begin{array}{|c|c|c|}\hline A & B & A \text{ XOR } B \\ \hline 0 & 0 & 1 \\ 0 & 1 & 0 \\ 1 & 1 & 1 \\ \hline \end{array}\]
\[\begin{array}{|c|c|c|}\hline A & B & A \text{ XOR } B \\ \hline 0 & 0 & 0 \\ 0 & 1 & 1 \\ 1 & 0 & 1 \\ 1 & 1 & 1 \\ \hline \end{array}\]
Show Solution
Verified By Collegedunia
The Correct Option isA
Solution and Explanation
The XOR (exclusive OR) gate gives the output as 1 only when exactly one of the inputs is 1, and 0 when both inputs are the same.
Thus, the truth table for XOR is:
- When both inputs A and B are 0, the output is 0.
- When A is 0 and B is 1, the output is 1.
- When A is 1 and B is 0, the output is 1.
- When both A and B are 1, the output is 0.
The correct truth table is therefore option (a).