XOR (exclusive OR) is true when the inputs are different, and false when the inputs are the same. That makes it very useful for truth tables.
For two inputs, write the four possible pairs:
Evaluate each row:
So the output pattern is 0, 1, 1, 0.
If the exercise asks for a simplified expression, use the fact that XOR can be read as “different values.” In truth-table form, the simplified result is just the output column you found.
A quick check is symmetry: switching the two inputs should not change the output. Also, the two matching cases must be 0, and the two different cases must be 1. If your table follows that pattern, it is correct.
© 2023-2026 AI MATH COACH