FutureLogic Blog → Boolean Logic → IGCSE 0478

How do Boolean expressions and truth tables work?

A Boolean expression combines binary inputs using logic operations; a truth table shows the output for every possible combination.

Master syllabus 10.8–10.10 with original circuit diagrams, worked examples and exam-style practice.

What is a Boolean expression?

A Boolean expression is a rule using binary inputs and operations such as AND, OR, NOT, NAND, NOR and XOR. Its output is either 0 or 1.

Brackets first → intermediate result → final gate → output.

Syllabus focus

10.8 Logic expressions; 10.9 Representing truth tables; 10.10 Representing logic expressions. This article builds on Blogs 1 and 2 and complements the existing truth-table exam method.

10.8 — Reading Boolean expressions

Consider X = (A AND B) OR C. First find P = A AND B, then calculate X = P OR C. The brackets determine the order.

P = A AND B
X = P OR C
ABCANDORXP
Original two-stage circuit. Rectangular, labelled gate blocks show connections; learn the standard gate shapes in Blogs 1 and 2.

Check your understanding

For A=1, B=0, C=1, what are P and X?

Reveal answer

P=0, X=1.

10.9 — How many rows does a truth table need?

With n independent binary inputs there are 2n combinations. Two inputs require four rows; three require eight. Use a consistent binary-counting order.

InputsRows
12
24
38
416

Worked example 1 — AND followed by OR

For X = (A AND B) OR C, write all eight input combinations, then calculate P before X.

ABCP = A AND BX = P OR C
00000
00101
01000
01101
10000
10101
11011
11111

Whenever C=1, the final OR output is 1. When C=0, X equals P.

Worked example 2 — NOT and brackets

For X = (NOT A) AND (B OR C), calculate P = NOT A and Q = B OR C before X = P AND Q.

P = NOT A
Q = B OR C
X = P AND Q
ABCP = NOT AQ = B OR CX
000100
001111
010111
011111
100000
101010
110010
111010
Exam tip: (NOT A) AND B is different from NOT (A AND B). The placement of NOT matters.

10.10 — Turning an expression into a circuit

Draw the operation inside the brackets first. Connect its output to the next gate, along with any other input. Keep the original structure if the question says not to simplify.

Example — (A OR B) AND C

ABCORANDXP
Original two-stage circuit. Rectangular, labelled gate blocks show connections; learn the standard gate shapes in Blogs 1 and 2.
ABCP = A OR BX = P AND C
00000
00100
01010
01111
10010
10111
11010
11111

From a circuit back to an expression

Trace the final gate backwards. If it is AND, fed by C and the output of an OR gate with inputs A and B, write X = (A OR B) AND C. Keep brackets to show the connections.

Check your understanding

A and NOT B enter an XOR gate. Write the expression.

Reveal answer

X = A XOR (NOT B).

Examiner insights — February/March 2026

In the February/March 2026 Paper 2 Principal Examiner Report, most candidates drew good circuits and completed truth tables accurately for Question 7. Some drew NOR and XOR symbols imprecisely; a small number gave opposite outputs, possibly because a NOT was added or missed.

FutureLogic recommendation: label intermediate results and check every inversion. These examiner observations apply to that examination series only.

Common mistakes

✗ Ignoring brackets.

(A AND B) OR C is not A AND (B OR C).

✗ Inverting the wrong value.

NOT A differs from NOT (A AND B).

✗ Missing input rows.

Three inputs require eight combinations.

✗ Skipping intermediate outputs.

Calculate each gate separately.

Original FutureLogic exam-style practice

Original teaching questions, not official Cambridge examination questions. Suggested marks are indicative.

Question 1 — 2 marks

How many rows does a truth table with four inputs require? Explain.

Reveal answer

16 (1), because 24=16 combinations (1).

Question 2 — 3 marks

Describe how to draw (A OR B) AND C as a circuit.

Reveal answer

A and B enter OR (1), its output enters AND (1), and C enters the other AND input (1).

Question 3 — 4 marks

Calculate X for (NOT A) AND (B OR C) when ABC = 000, 001, 010, 011.

Reveal answer

0, 1, 1, 1.

Question 4 — 4 marks

Find all eight outputs of (A AND B) OR C in binary-counting order.

Reveal answer

0, 1, 0, 1, 0, 1, 1, 1.

Quick quiz

  1. What is a Boolean expression?
  2. How many rows are needed for three inputs?
  3. Why use intermediate columns?
  4. Why do brackets matter?

Quiz answers

Reveal answers

1. A rule combining binary inputs with logic operations. 2. Eight. 3. To evaluate gates separately. 4. They determine which operation is evaluated first.

Final summary

Expression

Defines the logic.

Circuit

Shows gates and connections.

Truth table

Lists every combination.

Method

Evaluate one stage at a time.

Expression → circuit → intermediate columns → final output.

Ready to practise Boolean expressions?

Build multi-gate circuits in the Composition Lab.