By LearnAllStudents Editorial Team. Source check dates are listed below.
Start with a complete input list
Scroll the table to see all columns. Keyboard: focus the table area and use the arrow keys.
| A | B | A AND B | A OR B | A XOR B |
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 |
| 0 | 1 | 0 | 1 | 1 |
| 1 | 0 | 0 | 1 | 1 |
| 1 | 1 | 1 | 1 | 0 |
AND gives 1 only when both inputs are 1. OR is inclusive: either or both can be 1. XOR gives 1 when the two inputs differ. NOT has one input and reverses it: NOT 0 is 1 and NOT 1 is 0. The input order in this table is a binary count, which makes missing or duplicated rows easier to notice.
Worked circuit: A AND NOT B
Let an output Q equal A AND NOT B. Add a column for NOT B before calculating Q. For A=1 and B=0, NOT B is 1, so Q is 1 AND 1 = 1. For A=1 and B=1, NOT B is 0, so Q is 0. Reversing A instead of B would describe a different circuit.
Scroll the table to see all columns. Keyboard: focus the table area and use the arrow keys.
| A | B | NOT B | Q = A AND NOT B |
|---|---|---|---|
| 0 | 0 | 1 | 0 |
| 0 | 1 | 0 | 0 |
| 1 | 0 | 1 | 1 |
| 1 | 1 | 0 | 0 |
Interpret the result in words: Q is active when A is active and B is inactive. In a fictional classroom indicator, A could mean ‘request present’ and B ‘already handled’. This is a logic exercise, not a design for a real alarm or safety system. The interpretation must match all four rows, not just the row that gives 1.
Three inputs without guessing
For three inputs A, B and C, use 000, 001, 010, 011, 100, 101, 110 and 111. A changes every four rows, B every two and C every row. For Q=(A OR B) AND C, first evaluate A OR B. If C=0, Q must be 0 regardless of A and B. If C=1, Q follows A OR B. This gives output sequence 0, 0, 0, 1, 0, 1, 0, 1 in that row order.
There are 2ⁿ combinations for n independent Boolean inputs. Extra intermediate columns do not add input combinations. A circuit with two inputs and three gates still has four input rows. Keep gate symbols and Boolean notation consistent with the convention used in your course.
Try it yourself
- Write the outputs for NOT A OR B using rows 00, 01, 10, 11.
- Which two-input gate gives 0 when both inputs are 1 but 1 when exactly one input is 1?
- How many rows are needed for four independent inputs?
- For Q=(A AND B) OR C, find Q when A=1, B=0 and C=1.
Answers: 1, 1, 0, 1; XOR; 16; Q=1 because A AND B is 0 and 0 OR 1 is 1. For the first question, brackets are (NOT A) OR B. NOT(A OR B) would produce a different sequence. Show the intermediate result to make the scope of NOT visible.
For parents: ask for a counterexample
If your child says OR means ‘one input but not both’, ask what the output is for 1 OR 1. Then ask which gate really describes ‘exactly one’. A single counterexample is often clearer than reciting another definition. For a larger circuit, cover the final output column and ask them to explain one intermediate value. Let them correct the reasoning before checking the complete table.
How a tutor would approach this
Bring the gate diagram and your completed rows. Trace one incorrect row through each gate rather than rewriting the entire table from memory.
Frequently asked questions
How many rows does a truth table need?
For n independent Boolean inputs it needs 2ⁿ input combinations. Two inputs give four rows; three give eight.
What is the difference between OR and XOR?
OR includes the case where both inputs are 1. Two-input XOR gives 0 in that case.
Should I calculate the output first?
For a combined circuit, calculate intermediate gates first so each final result can be traced.
Are 0 and 1 always physical switch positions?
They represent Boolean states in the model. Their physical meaning depends on the system being described.
Official sources
- AQA GCSE Computer Science: computer systems (checked 2026-11-27)
Related pages
Try a free 30-minute demo
Work through a question with a tutor. No payment needed.
Request a free 30-minute demo