next up previous
Next: Are XOR gates produced Up: Content Questions Previous: How do you know

What's the difference between OR and exclusive OR?

A logical OR, $Q=A+B$, gives $Q$ true when either one, or both, of $A$ or $B$ are true; so $Q$ is only false when both $A$ and $B$ are false.

In contrast, exclusive OR, $Q = A \oplus B$, gives $Q$ true when exactly one, but not both, of $A$ and $B$ are true. This operation is a bit more like our everyday understanding of the word ``or'' (as in, do you want carrots or celery?)

Write the truth tables to see the difference!



Kate Scholberg 2017-04-11