Completing a truth table from an expression: one gate
Complete the truth table row by row: apply the gate rule to the input values A and B in each row and write the result in column X. AND gives 1 only when both inputs are 1.
Understanding Completing a truth table from an expression: one gate in IGCSE Computer Science Paper 2
What it does: NOT reverses its single input, so the output column is the opposite of the A column in each row. AND needs both inputs to be 1, so only the last row (A = 1, B = 1) has X = 1. AND outputs 1 only when both A and B are 1. NOT reverses the input. A is 0, so X is 1. The inputs are different, so XOR outputs 1. Each row is worked out separately: take the input values in that row, apply the gate rule and write the result in X. XOR gives 1 when exactly one input is 1, so rows 00 and 11 give 0 and rows 01 and 10 give 1.
Common mistakes: AND gives 1 only when both inputs are 1. With A = 0 and B = 0 the output X must be 0, so the row should be 0 0 0. NOT reverses the input. When A = 1, X = NOT A is 0, so the row should be 1 0.
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 552–561) 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 BFill in the Blanks
Spot the Error
Student with a class code? Join your class →