Question:

Which of the following is the CORRECT truth table for the XOR gate with two binary inputs A and B?

Show Hint

In XOR, the output is true only when the inputs are different. If both inputs are the same, the output is false.
Updated On: Oct 7, 2025
  • \[\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}\]
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is A

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).
Was this answer helpful?
0
0

Questions Asked in NIMCET exam

View More Questions