A = 1, B = 1 — XOR gate
introthe row that separates XOR from OR
Answer
output 0
Why this example is worth doing
Both inputs high gives 0, which is the single row where XOR and OR disagree and therefore the row worth opening on. XOR is exclusive: one or the other, not both. Since xor truth table is the highest-volume query on the entire site, the page is built so that this distinction is visible above the fold rather than three paragraphs down.
Try your own input in the XOR gate. Truth table, symbol and algebraic form for A ⊕ B, the difference detector.
How the answer is reached
The probed row
A = 1, B = 10— Row 3 of 4.
Truth table
| # | A | B | A ⊕ B |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 1 | 0 | 1 | 1 |
| 2 | 1 | 0 | 1 |
| 3 | 1 | 1 | 0 |