GCSE · Computer Science · Edexcel · Spec 1CP2
OR in truth tables
Three inputs, eight rows. How many of them output 0? Guess now, then see why you'll never need to work an OR table out the slow way again.
Build it row by row
Hunt for the zero
Three inputs, eight rows. The A OR B column is your working: it's the two-input rule, done first. Then OR it with C.
Keep your guess about the zeros in mind as you step through.
| A | B | C | A OR B | A OR B OR C |
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 0 | 1 |
| 0 | 1 | 0 | 1 | 1 |
| 0 | 1 | 1 | 1 | 1 |
| 1 | 0 | 0 | 1 | 1 |
| 1 | 0 | 1 | 1 | 1 |
| 1 | 1 | 0 | 1 | 1 |
| 1 | 1 | 1 | 1 | 1 |
Output
Step 1: Row 000. Start with the two-input rule: A OR B is 1 if A is 1, B is 1, or both are. Here A and B are both 0, so A OR B is 0. Now OR that with C. C is 0 too, so the output is 0. Every input is 0. Hold that thought.
Step through with Next, or press Play and watch where the lone 0 sits.
Predict, then check
Brackets are evaluated first. Commit to an answer before you build anything.
Here's A OR (A AND B). For AB = 00, 01, 10, 11, what will its output column be?
WHAT YOU'VE LEARNED
A quick recap of today's lesson.
What you need to know
- The OR rule: the output is 1 if either one or both inputs is 1, and 0 only when every input is 0.
- A truth table shows the output for every possible combination of inputs. 1 means true and 0 means false.
- Two inputs need four rows and three inputs need eight. Write the rows as binary numbers in order so that none are missed.
- Order of precedence: brackets are evaluated first, and NOT is evaluated before AND and OR.
The big picture
OR outputs 1 if either one or both of its inputs is 1, and 0 only when every input is 0. To build a truth table, list every combination of inputs in binary order, give each part of the expression its own column, and evaluate brackets first and NOT before OR. A truth table is also how you check whether a circuit does what was intended.
Key points
Worked example
Problem
Build the truth table for (A OR B) AND C.
⚠ Watch out
Reading OR as 'one or the other, but not both' and writing 0 in the row where both inputs are 1. OR gives 1 in that row too. The only 0 is the row where every input is 0.
Memory hook
OR is generous: one 1 is enough. So don't hunt for the 1s. Hunt for the lone 0, the row where everything is 0.
Check yourself
Without writing out the whole table, say which row of A OR B OR C gives 0, and explain why every other row must give 1.
Flashcards
(13)What is the OR rule?
What is a truth table?
What is a Boolean expression?
In a truth table, what do 1 and 0 stand for?
How many rows does a truth table need for two inputs? For three?
How do you make sure no combination of inputs is missed?
In a Boolean expression, what is evaluated first?
What does NOT A OR B mean?
How do you evaluate NOT (A OR B)?
Does the order matter when you evaluate A OR B OR C?
What is A OR (A AND B) the same as?
Building a truth table from a circuit: what are the column headings?
How do you use a truth table to test a circuit?
Tap any card to flip it, or use Study as deck to go through them one at a time. In the full lesson these run as a spaced-repetition deck — you rate each card Hard, Good or Easy and the tricky ones keep coming back until they stick.
Learning with Lightbulb is opening soon
You can use this lesson now. Join the waitlist and we'll let you know when the full Lightbulb experience is ready.
Keep me postedMore Edexcel GCSE Computer Science topics
How this lesson was checked. This Edexcel GCSE Computer Science (specification 1CP2)lesson was published through Lightbulb Learning's human-designed editorial process — the educational standards, accuracy rules and publication checks it must pass were authored and approved by Philip Halpin. It passed subject-specific assessment, automated educational checks and technical publication verification before going live (publication checks completed 29 September 2026). Published pages are monitored, human spot-checking is ongoing across the lesson library, and anything found wrong is corrected or withdrawn. How our lessons are made and checked. Spotted a mistake? Email hello@lightbulblearning.co and we'll review it.