Truth tables with three inputs
Real systems often depend on three conditions at once. A truth table with three inputs shows every possible situation.
Eight rows
List them in binary order: 000, 001, 010, 011, 100, 101, 110, 111.
Work in stages
| A | B | C | A AND B | P |
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 0 | 1 |
| 0 | 1 | 0 | 0 | 0 |
| 0 | 1 | 1 | 0 | 1 |
| 1 | 0 | 0 | 0 | 0 |
| 1 | 0 | 1 | 0 | 1 |
| 1 | 1 | 0 | 1 | 1 |
| 1 | 1 | 1 | 1 | 1 |
From a problem to logic
"The alarm (P) sounds if the door is open (A) AND the system is on (B), OR the panic button (C) is pressed."
P = (A AND B) OR C
Find P = A AND NOT B when A = 1, B = 0.
- NOT B = NOT 0 = 1
- A AND 1 = 1 AND 1 = 1
Answer: P = 1
Three inputs give 8 rows. Work through the expression in stages with extra columns. Turn word problems into logic by finding the conditions and the joining words.
- Truth table
- A table showing the output of a logic statement for every combination of inputs.
- Binary
- Base 2: the number system that uses only the digits 0 and 1.
All GCSE and International GCSE Computer Science key terms and definitions โ
Try two quick questions
See if it has sunk in. Answers are marked straight away.
2 more questions
Try each one, then tap to check.
How many rows (not counting the heading) does a truth table with 4 inputs have?
Show the answer
Answer: 16
Each input doubles the rows: 24 = 16.
P = (A AND B) OR NOT C. What is P when A = 1, B = 1, C = 1?
Show the answer
Answer: 1
A AND B = 1 AND 1 = 1. NOT C = NOT 1 = 0. 1 OR 0 = 1.
Check you have got it
Answer 7 quick questions with instant marking. If you get one wrong, GCSE-ready shows you why and gives you another go. It is free, and you do not need an account.
- Pearson Edexcel GCSE Computer Science (1CP2) specification, topic 1.3.1
- Pearson Edexcel International GCSE Computer Science (4CP0) specification, topic 4.3.1, 4.3.2
Facts checked against the sources below, 17 October 2026. Last updated 2 October 2026. Spotted a mistake? Tell us and we will fix it.
What do exam command words like explain and evaluate mean? โ