Revision Notes
O Level Computer Science: Boolean Logic — Revision Notes
Boolean logic recall notes for Cambridge O Level Computer Science 2210: gate output patterns, words-to-gates, truth table drills and circuit-drawing rules.
- Subject
- Computer Science
- Level
- O LEVELS
- Topic
- Boolean logic
- Author
- Marlbridge Academic Team
- Updated
- Reviewed by
- Harris Khan (what this means)
Aligned to Cambridge O Level Computer Science (2210), 2026-2028. Official specification .
Syllabus page (what it covers and how it is assessed): Cambridge O Level Computer Science.
Syllabus points this page covers
2210
- 10 Boolean logic (whole topic)
Found an error? Report a correction.
Need help with this topic? Request a free trial class for O Level Computer Science (2210).
Topic 10 of Cambridge O Level Computer Science (2210) can be revised almost entirely from one table of gate outputs and a handful of conversion methods. On Paper 2 you will be asked to name gates, complete truth tables, write logic expressions and draw circuits from statements, expressions or tables — for up to three inputs and one output, with every gate except NOT limited to two inputs.
Condensed for the final weeks. For the full explanation and worked conversions, use the Boolean logic study guide; to practise, use the Boolean logic practice questions.
Syllabus coverage (2210, 2026–2028)
| Ref | What you must be able to do |
|---|---|
| 10.1 | Identify and use the standard logic gate symbols |
| 10.2 | Define the functions of NOT, AND, OR, NAND, NOR and XOR (EOR), including outputs for all inputs |
| 10.3(a) | Create a logic circuit from a problem statement, logic expression or truth table |
| 10.3(b) | Complete a truth table from a problem statement, logic expression or logic circuit |
| 10.3(c) | Write a logic expression from a problem statement, logic circuit or truth table |
Gate fingerprints
Read each gate’s output column top to bottom for inputs 00, 01, 10, 11. Each gate has its own four-digit pattern.
| Gate | Output pattern | Memory hook |
|---|---|---|
| AND | 0 0 0 1 | only the last row |
| OR | 0 1 1 1 | all but the first row |
| NAND | 1 1 1 0 | AND flipped |
| NOR | 1 0 0 0 | OR flipped |
| XOR | 0 1 1 0 | the middle two — inputs differ |
| NOT (one input: 0, 1) | 1 0 | flip it |
If a question gives you an output column and asks you to name the gate, match it to a fingerprint.
Words → gates
| Words in the statement | Write |
|---|---|
| “and”, “both”, “as well as”, “only while” | AND |
| “or”, “either”, “at least one” | OR |
| “not”, “is off”, “is not”, input value 0 is the condition | NOT |
| “either … but not both”, “exactly one”, “different” | XOR |
| “not both” | NAND |
| “neither … nor” | NOR |
Method cards
Truth table from an expression: inputs in order 000 → 111; one working column per bracket; final column last; check two rows by hand.
Expression from a circuit: label the output of each gate as you move left to right; nest them in brackets.
Expression from a truth table: for each row with X = 1, AND the three inputs (put NOT before any input that is 0); join the row-terms with OR.
Circuit from an expression: one gate symbol for every operator; draw the inner brackets first; split an input line if it is used twice; label A, B, C and X.
Drill 1
X = (A OR B) AND NOT C
| A | B | C | A OR B | NOT C | X |
|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 1 | 0 |
| 0 | 0 | 1 | 0 | 0 | 0 |
| 0 | 1 | 0 | 1 | 1 | 1 |
| 0 | 1 | 1 | 1 | 0 | 0 |
| 1 | 0 | 0 | 1 | 1 | 1 |
| 1 | 0 | 1 | 1 | 0 | 0 |
| 1 | 1 | 0 | 1 | 1 | 1 |
| 1 | 1 | 1 | 1 | 0 | 0 |
Drill 2
A vending machine releases a drink (X = 1) when a coin has been inserted (C = 1) and the selected drink is not sold out (S = 1 means sold out).
X = C AND NOT S — the NOT is needed because the condition you want is S = 0.
Drill 3
A circuit: A goes through a NOT gate; its output and B go into an OR gate; that output and C go into a NAND gate, giving X.
X = (NOT A OR B) NAND C. When A = 1, B = 0, C = 1: NOT A = 0; 0 OR 0 = 0; 0 NAND 1 = 1, so X = 1.
Circuit-drawing rules from the syllabus
- Use the standard symbols from section 4 of the syllabus.
- Every gate except NOT has exactly two inputs.
- Draw for the statement given — do not simplify.
- Maximum of three inputs and one output.
2210 and its sibling syllabus
Topic 10 in 2210 has the same learning outcomes and gate symbols as Cambridge IGCSE Computer Science (0478).
Exam traps
Drawn from our practice page, which paraphrases the Cambridge 2210 June 2025 Paper 22 mark scheme and lists where marks are usually lost:
- XOR outputs were credited as 1 only when the two inputs differ; treating the 1, 1 row as 1 confuses XOR with OR.
- In a question where two inputs were 0 when the condition was met, the expression needed NOT on those inputs. Read what 0 and 1 mean for each input.
- Eight-row truth tables were marked in bands (four marks for all eight outputs, three for six or seven, and so on), so working columns that prevent slips are worth the time.
- Missing brackets change the meaning:
NOT A AND B OR Cis ambiguous. - NAND and NOR are easily swapped when naming a gate from its outputs — use the fingerprints.
Frequently asked questions
How do I tell NAND from NOR quickly? NAND outputs 0 only when both inputs are 1 (pattern 1110). NOR outputs 1 only when both inputs are 0 (pattern 1000).
How many rows are in a truth table for three inputs? Eight: every combination from 000 to 111.
What does EOR mean? EOR is another name for XOR, exclusive OR. The 2210 syllabus lists the gate as XOR (EOR).
Self-test
- Name the gate with the output pattern 1 0 0 0.
- Write an expression for: the heater (X) is on when the room is cold (C = 1) and the window is not open (W = 1 means open).
- Give X for
X = A XOR (B AND C)when A = 1, B = 1, C = 1. - How many gates are needed to draw
X = (A AND B) OR (NOT C)? - Why must a three-input AND in an expression be drawn as two gates?
Answers: 1. NOR. 2. X = C AND NOT W. 3. B AND C = 1; 1 XOR 1 = 0, so X = 0. 4. Three: AND, NOT and OR. 5. The 2210 syllabus limits all gates except NOT to two inputs.
Get free revision emails (optional)
Occasional emails with practice questions, worked explanations and links to free resources for the qualification and subjects you choose. No spam, and you can unsubscribe from any email. The free tools on this site never need an email.
Related resources
-
Study guides
O Level Computer Science: Boolean Logic (Cambridge 2210)
Topic 10 guide for Cambridge O Level Computer Science 2210: six logic gates, truth tables, expressions and circuits, with worked conversions between all forms.
Computer Science · Cambridge · O Level
Read guide -
Practice questions
O Level Computer Science: Boolean logic — Practice Questions (Cambridge 2210)
Original practice questions with worked answers for Cambridge O Level Computer Science 2210: NAND, NOR and XOR gates, logic expressions and eight-row outputs.
Computer Science · Cambridge · O Level
Try questions -
Practice questions
O Level Computer Science: Data Representation — Practice Questions
Original exam-style practice questions with full worked answers on number bases, binary arithmetic, character sets and data storage.
Computer Science · Cambridge · O Level
Try questions
Related articles
-
teaching
A Level tuition in Dubai: Cambridge or Pearson Edexcel International A Level?
Schools in Dubai and Abu Dhabi teach either Cambridge International AS & A Level or Pearson Edexcel International A Level. How the two are structured, why it matters for tuition, and how online classes from Lahore work.
9 October 2026
-
curriculum guides
Choosing subjects at IGCSE and A Level
How subject choices at 14 and 16 affect university options later, and how to keep pathways open without overloading a timetable.
28 July 2026
Studying this with a teacher
Working through Computer Science O LEVELS?
This page is free and stays free. If you would rather be taught it, Marlbridge runs Computer Science classes one-to-one and in small groups of up to 15, online in your own time zone. The first trial class is free. WhatsApp replies within an hour (8am–11pm Pakistan time, every day); email the same day.
Cambridge Computer Science teachers at Marlbridge