Revision Notes
Cambridge A Level Computer Science (9618): Logic Gates and Logic Circuits – Revision Notes
Revision notes for Cambridge 9618 section 3.2: gate truth tables, symbols, conversions between circuits, expressions and tables, exam traps and a self-test.
- Subject
- Computer Science
- Level
- AS LEVEL
- Topic
- Topic 3 – Hardware
- Author
- Marlbridge Academic Team
- Updated
- Reviewed by
- Harris Khan (what this means)
Aligned to Cambridge A Level Computer Science (9618), 2026. Official specification .
Syllabus page (what it covers and how it is assessed): Cambridge A Level Computer Science.
Syllabus points this page covers
9618 (AS Level)
- 3.2 Logic Gates and Logic Circuits
Found an error? Report a correction.
Need help with this topic? Request a free trial class for A Level Computer Science (9618).
These notes condense section 3.2 Logic Gates and Logic Circuits of the Cambridge International AS & A Level Computer Science (9618) syllabus for 2026, AS content assessed on Paper 1. The logic gates study guide has full worked examples; the logic gates practice questions test every conversion.
Syllabus rule to remember: all gates except NOT have two inputs only.
Key terms
| Term | Meaning |
|---|---|
| Logic gate | An electronic component that performs a Boolean operation on one or two binary inputs |
| Truth table | A table listing the output for every possible combination of inputs |
| Logic expression | A statement of the output using AND, OR, NOT, NAND, NOR, XOR and brackets |
| Logic circuit | Gates connected so that outputs of some gates are inputs to others |
| Intermediate output | The output of a gate inside a circuit, used as an input to a later gate |
| Sum of products | An expression formed by ORing together one AND term for each row where the output is 1 |
The gates in one table
| A | B | NOT A | A AND B | A OR B | A NAND B | A NOR B | A XOR B |
|---|---|---|---|---|---|---|---|
| 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 |
| 0 | 1 | 1 | 0 | 1 | 1 | 0 | 1 |
| 1 | 0 | 0 | 0 | 1 | 1 | 0 | 1 |
| 1 | 1 | 0 | 1 | 1 | 0 | 0 | 0 |
Memory hooks:
- AND: 1 only if all inputs are 1.
- OR: 0 only if all inputs are 0.
- NAND: 0 only if all inputs are 1 (opposite of AND).
- NOR: 1 only if all inputs are 0 (opposite of OR).
- XOR: 1 if inputs differ.
Symbols (draw them, do not describe them, in the exam)
- NOT: triangle + bubble.
- AND: D shape (flat back, round front).
- OR: curved back, pointed front.
- NAND / NOR: AND / OR + bubble at the output.
- XOR: OR with a second curved line behind the inputs.
Conversion recipes
| From → To | Method |
|---|---|
| Problem → expression | Translate phrase by phrase; bracket each gate’s result; watch what 1 means for each input |
| Expression → circuit | Innermost brackets first; one gate per operator; two inputs per gate |
| Circuit → expression | Start at the output and work back, writing each gate’s inputs in brackets |
| Expression or circuit → truth table | Binary-ordered input rows; a working column per gate; then output |
| Truth table → expression | Sum of products: one AND term per output-1 row (NOT for 0 inputs), terms joined by OR |
| Truth table → circuit | Write the sum-of-products expression, then draw it |
Three-input terms need two 2-input gates: (A AND B) AND C.
Quick worked reminder
Expression: X = NOT (A OR B) OR (A AND C).
| A | B | C | A OR B | NOT (A OR B) | A AND C | X |
|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 1 | 0 | 1 |
| 0 | 0 | 1 | 0 | 1 | 0 | 1 |
| 0 | 1 | 0 | 1 | 0 | 0 | 0 |
| 0 | 1 | 1 | 1 | 0 | 0 | 0 |
| 1 | 0 | 0 | 1 | 0 | 0 | 0 |
| 1 | 0 | 1 | 1 | 0 | 1 | 1 |
| 1 | 1 | 0 | 1 | 0 | 0 | 0 |
| 1 | 1 | 1 | 1 | 0 | 1 | 1 |
NOT (A OR B) could also be drawn as a single NOR gate.
Phrase → gate
- “both”, “and” → AND
- “either”, “at least one” → OR
- “exactly one”, “but not both” → XOR
- “not both” → NAND
- “neither… nor” → NOR
- “is not”, “is off” → NOT
Exam traps
- Rows out of binary order, or 7 rows instead of 8.
- XOR and OR differ only in the 1, 1 row.
- NAND and NOR differ in the middle two rows.
- Three-input gates drawn when the syllabus allows only two inputs.
- Missing brackets in expressions.
- Missing the bubble on NOT, NAND or NOR symbols.
- Forgetting that one input can feed more than one gate.
- In sum of products, writing B instead of NOT B for a row where B = 0.
Self-test
- Which gate gives 1 only when both inputs are 0?
- Which gate gives 0 only when both inputs are 1?
- Complete: A XOR B for A = 1, B = 1 is …
- How many rows does a truth table with three inputs have?
- Write an expression for: “The alarm sounds (X) if the window is open (W = 1) or the door is open (D = 1), but only when the system is armed (S = 1).”
- Give X for W = 1, D = 0, S = 0 in question 5.
- Write a sum-of-products expression for a two-input table where X = 1 only in rows A = 0, B = 1 and A = 1, B = 0.
- Which single gate does your answer to question 7 represent?
- How many 2-input AND gates are needed for A AND B AND C?
- Write the expression for this circuit: A and B go into a NOR gate; its output and C go into an AND gate giving X.
- Give X for A = 0, B = 0, C = 1 in question 10.
- Why is it useful to add intermediate columns to a truth table?
Answers
- NOR.
- NAND.
- 0.
- 2³ = 8.
- X = (W OR D) AND S.
- W OR D = 1, AND S = 0, so X = 0.
- X = (NOT A AND B) OR (A AND NOT B).
- XOR.
- Two: (A AND B) AND C.
- X = (A NOR B) AND C.
- A NOR B = 1; 1 AND 1 = 1.
- Each gate’s output is worked out once and then reused, so errors are less likely and the examiner can follow the method.
Official syllabus
Cambridge International AS & A Level Computer Science (9618) syllabus for 2026, Subject content, section 3.2 Logic Gates and Logic Circuits. Published by Cambridge International.
Related resources
-
Study guides
Cambridge A Level Computer Science (9618): Computers and their components
Study guide to Cambridge 9618 section 3.1: storage needs, embedded systems, how named devices work, buffers, RAM and ROM types, and monitoring and control.
Computer Science · Cambridge · AS Level
Read guide -
Practice questions
Cambridge A Level Computer Science (9618): Computers and their components – Practice Questions
Original questions with mark-scheme answers on Cambridge 9618 section 3.1: device operations, embedded systems, buffers, memory types and control systems.
Computer Science · Cambridge · AS Level
Try questions -
Revision notes
Cambridge A Level Computer Science (9618): Computers and their components – Revision Notes
Revision notes for Cambridge 9618 section 3.1: device operations in steps, embedded systems, buffers, memory types, sensors, actuators and a self-test.
Computer Science · Cambridge · AS Level
Revise topic
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.