IGCSE Computer Science · Study guide

Boolean Logic

IGCSE Computer Science · Comprehensive Guide 10

Topic 10 · Boolean Logic

Move without gaps among problem statements, gate functions, Boolean expressions, circuits, and truth tables.

3 lesson sections · 3 worked applications · Paper 2 · Cambridge 0478 (2026–2028)

Prerequisite check

Binary inputs and outputs, systematic row ordering, and nested expression reading.

Exam reasoning lens

Draw the circuit for the statement given without simplification. Complete intermediate gate outputs before the final column.

Topic 10 · Section 1

Logic Gates & Truth Tables

The defining description of NOT is “is the single input gate and reverses its input.” Connect it with AND, whose role is “outputs 1 only when both inputs are 1.”

Required vocabulary and boundaries

IdeaPrecise roleEvidence or example
NOTis the single input gate and reverses its inputNOT 0 = 1 in a truth table
ANDoutputs 1 only when both inputs are 11 AND 1 = 1
ORoutputs 1 when at least one input is 10 OR 1 = 1
NANDthe inverse of AND1 NAND 1 = 0
NORthe inverse of OR0 NOR 0 = 1
XOR (EOR)outputs 1 when its two inputs differ1 XOR 0 = 1

Four-step exam routine

1

Identify the exact clue and name NOT only when its defining role fits.

2

State the mechanism or boundary: outputs 1 only when both inputs are 1.

3

Apply the idea to evidence such as “0 OR 1 = 1.”

4

Reject the tempting error that is identical to AND.

Method and reasoning

Reason Before Naming

Truth tables make gate rules visible because each row tests one exact input combination.

Start by underlining the clue in the scenario, then decide what job that clue is describing. This keeps the answer tied to the concept being assessed.

Answer pattern
NAND is the opposite of AND, so it outputs 0 only when both inputs are 1.
Scenario clueWhat it proves
invert one inputNOT
both requiredAND
either allowedOR
different inputsXOR
opposite of ANDNAND
opposite of ORNOR
Worked application

When The Scenario Is Less Obvious

The question may include a boundary case or a tempting wrong answer. Use the exact role in the scenario as evidence.

  • logic gate: digital circuit that applies a logic rule
  • input: binary value entering a gate
  • output: binary value produced by a gate
  • truth table: table showing all input combinations and outputs
  • inversion: changing 0 to 1 or 1 to 0

A full answer names the gate rule and uses the exact input row as evidence.

TermUse in this lesson
logic gatedigital circuit that applies a logic rule
inputbinary value entering a gate
outputbinary value produced by a gate
truth tabletable showing all input combinations and outputs
inversionchanging 0 to 1 or 1 to 0
Boundary and misconception

A Common Mix-Up

A common mistake is treating XOR like OR.

Fix: Check whether the gate is inverted, then list rows in binary order.

MistakeCorrection
A common mistake is treating XOR like OR.Check whether the gate is inverted, then list rows in binary order.
Topic 10 · Section 2

Logic Circuits & Boolean Expressions

The defining description of logic-expression-to-circuit conversion is “creates a logic circuit in the stated Boolean or logic expression structure without simplification.” Connect it with logic-circuit-to-expression conversion, whose role is “follows connections from inputs through each gate to write the final logic expression.”

Required vocabulary and boundaries

IdeaPrecise roleEvidence or example
logic-expression-to-circuit conversioncreates a logic circuit in the stated Boolean or logic expression structure without simplificationA AND (B OR C) uses OR before AND
logic-circuit-to-expression conversionfollows connections from inputs through each gate to write the final logic expressionwrite an inner gate result inside brackets
truth-table input rowscontain every possible binary input combinationeight rows for three inputs
intermediate gate outputrecords a gate's result before it feeds a later gateX = B OR C before Output = A AND X
logic-circuit limituses no more than three inputs and one output when converting a problem statement, truth table, or logic expressioninputs A, B, C and one Output
unsimplified circuit ruledraws the circuit for the exact statement given even if algebraic simplification is possibleretaining a specified NOT and AND arrangement

Four-step exam routine

1

Identify the exact clue and name logic-expression-to-circuit conversion only when its defining role fits.

2

State the mechanism or boundary: follows connections from inputs through each gate to write the final logic expression.

3

Apply the idea to evidence such as “eight rows for three inputs.”

4

Reject the tempting error that must always equal the final circuit output.

Method and reasoning

Reason Before Naming

Tracing is about evidence: every final output should be supported by earlier gate outputs.

Start by underlining the clue in the scenario, then decide what job that clue is describing. This keeps the answer tied to the concept being assessed.

Answer pattern
Intermediate outputs are needed because later gates use those values as their inputs.
Scenario clueWhat it proves
A=1, B=1A AND B = 1
C=0NOT C = 1
1 OR 1X = 1
A XOR Bdifferent-input check
Worked application

When The Scenario Is Less Obvious

The question may include a boundary case or a tempting wrong answer. Use the exact role in the scenario as evidence.

  • logic circuit: connected gates that produce a final output
  • Boolean expression: written form of a logic circuit
  • intermediate output: result from a gate before the final output
  • brackets: symbols showing which part to evaluate first
  • trace: work through the circuit step by step

A strong answer gives a trace: input values, intermediate outputs, then final output.

TermUse in this lesson
logic circuitconnected gates that produce a final output
Boolean expressionwritten form of a logic circuit
intermediate outputresult from a gate before the final output
bracketssymbols showing which part to evaluate first
tracework through the circuit step by step
Boundary and misconception

A Common Mix-Up

A common mistake is skipping intermediate outputs.

Fix: Work left to right through the circuit structure, but evaluate bracketed or inverted parts before the final gate.

MistakeCorrection
A common mistake is skipping intermediate outputs.Work left to right through the circuit structure, but evaluate bracketed or inverted parts before the final gate.
Topic 10 · Section 3

Logic Scenarios & Problem Solving

The defining description of AND clue is “both or all stated conditions must be true.” Connect it with OR clue, whose role is “at least one stated condition must be true.”

Required vocabulary and boundaries

IdeaPrecise roleEvidence or example
AND clueboth or all stated conditions must be truedark and motion detected
OR clueat least one stated condition must be truesmoke or heat detected
NOT cluethe stated condition is false or inactivedoor is not closed
input variablerepresents one sensor, switch, or conditionM means motion detected
output variablerepresents the final action or resultA means alarm sounds
given structurea requested circuit is drawn without simplification and with at most three inputs and one outputA AND (B OR C)

Four-step exam routine

1

Identify the exact clue and name AND clue only when its defining role fits.

2

State the mechanism or boundary: at least one stated condition must be true.

3

Apply the idea to evidence such as “door is not closed.”

4

Reject the tempting error that is the final alarm output.

Method and reasoning

Reason Before Naming

A good expression should make the real system rule unambiguous.

Start by underlining the clue in the scenario, then decide what job that clue is describing. This keeps the answer tied to the concept being assessed.

Answer pattern
B = S OR E because smoke detection or the emergency button is enough to sound the buzzer.
Scenario clueWhat it proves
dark and motionD AND M
smoke or heatS OR H
door not closedNOT D
dry and (manual or timer)D AND (M OR T)
Worked application

Streetlamp Scenario

A lamp turns on when it is dark and motion is detected.

Let D mean dark and M mean motion. Both conditions are required.

Result: L = D AND M.

Word clueLogic
darkD
motionM
andAND
Boundary and misconception

A Common Mix-Up

A common mistake is choosing a gate from the story topic instead of the connector words.

Fix: Map variables first, then translate connector words into gates.

MistakeCorrection
A common mistake is choosing a gate from the story topic instead of the connector words.Map variables first, then translate connector words into gates.
Paper 2 response lab

Turn knowledge into marks

A high-quality response does more than recall a term. It selects the command word, states the exact role, follows the mechanism in order, and connects the effect to the scenario.

Define precisely

For NOT, begin with the defining role: is the single input gate and reverses its input. Do not replace the definition with an example.

Describe a process

Use an ordered chain. Name what enters, what changes or is checked, and what result follows. A useful anchor here is “0 OR 1 = 1.”

Apply or justify

Quote the scenario need, select output variable, then link its role — represents the final action or result — to the required outcome.

Repair a misconception

Do not accept the claim that must always be simplified first. Replace it with the exact boundary: a requested circuit is drawn without simplification and with at most three inputs and one output.

Mark-by-mark response ladder

  1. Name: use the exact syllabus term.
  2. Role: define what that term does or represents.
  3. Mechanism: describe the relevant steps in their logical order.
  4. Context: explain why that mechanism matters in the stated scenario.
  5. Boundary: avoid claiming more than the method guarantees.

Last-pass checklist

Logic Gates & Truth TablesNOT — is the single input gate and reverses its input.
Logic Circuits & Boolean Expressionslogic-expression-to-circuit conversion — creates a logic circuit in the stated Boolean or logic expression structure without simplification.
Logic Scenarios & Problem SolvingAND clue — both or all stated conditions must be true.

Mapped to Cambridge IGCSE Computer Science 0478 · 2026–2028 syllabus, version 5