Completing a truth table from a problem statement
Write the problem statement as an expression like this, then find X for every row of the table: put 1 where the statement is true and 0 where it is false.
Understanding Completing a truth table from a problem statement in IGCSE Computer Science Paper 2
What it does: Door open = A, system on = B, panic button = C. 'AND' joins A and B in brackets, then 'OR' adds C. Each of the three inputs can be 0 or 1, so there are 2 x 2 x 2 = 8 rows, and X is worked out for each one. The word AND means both conditions must be true, so X is 1 only when A and B are both 1. A AND B is 0, but C is 1, and 0 OR 1 gives 1. The statement is true in this row. 1 means true. Write 1 in the X column for every row where the situation in the statement is true, and 0 where it is false.
Common mistakes: With A=1 and B=1, A AND B is 1, so (A AND B) OR C is 1 even when C is 0. The line should say X = 1. The statement says A or B, so the expression must use OR, not AND. It should be X = A OR B.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 562–580) and word search (Modules 539–580).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
X = (A AND B) OR CFill in the Blanks
Spot the Error
Student with a class code? Join your class →