GCSE Computer Science · Logic gates, truth tables, Boolean expressions and logic circuits
Boolean logic
GCSE · AQA · OCR
Boolean logic
Logic gates, truth tables, Boolean expressions and logic circuits
Study Simplified revision slides
In this deck
Exam boardsAQAOCR
AQA: Includes XOR.; OCR: NOT, AND and OR only; XOR items are AQA only (tagged AQA-XOR).
Tip: press T or tap Test me to hide the answers and quiz yourself.
Have a go first
What is the output of an AND gate when A = 1 and B = 0?
0. AND needs both inputs to be 1.
Guessing is fine. Trying before you revise helps it stick.
Key facts
AND gate
Output is 1 only if both inputs are 1
OR gate
Output is 1 if at least one input is 1
NOT gate
Output is the opposite of the input
XOR gate
Output is 1 if exactly one input is 1 (exclusive OR)
Key facts
Truth table
A table showing the output for every possible combination of inputs
Number of rows in a truth table
2ⁿ, where n is the number of inputs
Boolean expression
A logical statement using AND, OR, NOT, e.g. Q = A AND NOT B
AND notation (AQA)
A . B
Key facts
OR notation (AQA)
A + B
NOT notation (AQA)
A with a bar over it (Ā)
OCR notation
AND (∧), OR (∨), NOT (¬)
Logic circuit
Gates connected together to process inputs
Key facts
Logic gate
A component that performs a Boolean operation on one or more inputs
Binary 1 and 0
Represent True and False (on and off)
Combining gates
The output of one gate can become an input to another
Key terms
- AND gate
- Output is 1 only if both inputs are 1
- OR gate
- Output is 1 if at least one input is 1
- NOT gate
- Output is the opposite of the input
- XOR gate
- Output is 1 if exactly one input is 1 (exclusive OR)
- Truth table
- A table showing the output for every possible combination of inputs
- Number of rows in a truth table
- 2ⁿ, where n is the number of inputs
Quick check 1
What is the output of an OR gate when A = 1 and B = 0?
1. OR outputs 1 if at least one input is 1.
Quick check 2
What is the output of a NOT gate when the input is 1?
0. NOT inverts the input.
Teaching? Open in present mode. Swipe, use the arrow keys or tap the arrows. Download PDF opens your print window: choose "Save as PDF".
Boolean logic: key facts
Everything on the slides, as a list you can read or print.
- AND gate
- Output is 1 only if both inputs are 1
- OR gate
- Output is 1 if at least one input is 1
- NOT gate
- Output is the opposite of the input
- XOR gate
- Output is 1 if exactly one input is 1 (exclusive OR)
- Truth table
- A table showing the output for every possible combination of inputs
- Number of rows in a truth table
- 2ⁿ, where n is the number of inputs
- Boolean expression
- A logical statement using AND, OR, NOT, e.g. Q = A AND NOT B
- AND notation (AQA)
- A . B
- OR notation (AQA)
- A + B
- NOT notation (AQA)
- A with a bar over it (Ā)
- OCR notation
- AND (∧), OR (∨), NOT (¬)
- Logic circuit
- Gates connected together to process inputs
- Logic gate
- A component that performs a Boolean operation on one or more inputs
- Binary 1 and 0
- Represent True and False (on and off)
- Combining gates
- The output of one gate can become an input to another
✓ Written by Study Simplified to the AQA · OCR GCSE Computer Science specification, and independently fact-checked against the official specification. Last reviewed 1 December 2026.
Study Simplified