FL
📶 Topic 10 Boolean logic · Page 10.1–10.7

10.1–10.7 Gates Lab

The six logic gates. NOT · AND · OR · NAND · NOR · XOR. The symbol, truth table and logic expression for each one — before you join them into circuits.

🧪 Exam Mode ON — recall from memory, then reveal
§1 · Topic Overview

Where this lab sits

Every digital device you own processes data as electrical signals that are either high (1) or low (0) — two states. Logic gates are the tiny switches that combine those signals. They are the building blocks of computation.

In this lab you'll meet the six logic gates in the Cambridge 0478 syllabus: NOT · AND · OR · NAND · NOR · XOR. For each one you'll learn the symbol, the behaviour, the truth table, and how to write it as a logic expression.

This is the gates lab. The Composition Lab joins gates into circuits, and the Problem Statements Lab turns real-world rules into circuits. Both build on knowing these six gates well.

📶 The Signal metaphor

"The gate fires. The signal responds." Each gate is a switch. You put signals in. You get a signal out. Every gate has its own rule for which combinations of inputs turn the output high.

§2 · Learning Objectives

By the end of this lab you will be able to:

  • Draw the standard symbol for each of the six gates (NOT, AND, OR, NAND, NOR, XOR) from memory
  • Name any gate shown as a symbol
  • State the number of inputs each gate accepts (NOT = 1; all others = 2)
  • Complete a truth table for any single gate
  • Write the logic expression for any single gate in words, e.g. X = A AND B
  • Recognise the "opposite output" relationship between AND↔NAND and OR↔NOR
§3 · Key Terminology

Key terms

Short definitions to learn — clear wording helps in written answers.

Voltage — the pressure that forces charged electrons to flow in an electrical circuit.
Logic gate — a very small component in a computer system that controls the flow of electricity.
Boolean value — a value with only two possible states — true or false, or in a logic gate's case 0 or 1.
Input — a value going into a gate (labelled A, or A and B).
Output — the value produced by a gate (labelled X).
Truth table — a method to show all the different combinations that can be used as input values and what the output value will be for those input values.
Logic expression — a mathematical representation that is used to represent an electrical circuit or system.
High voltage / low voltage — High = 1, low = 0. A gate's inputs and output are always one of these two states.
§4 · Core Theory

§4.1 · Why gates exist (the electricity story)

  1. Computers process data as electrical signals.
  2. Binary needs two states (0 and 1) — a signal is either high voltage (1) or low voltage (0).
  3. Computers use logic gates to process these signals.
  4. Each gate acts as a switch — it takes one or two inputs and produces one output, either 1 or 0.
  5. A modern processor contains billions of gates.

§4.2 · How to read a gate

Every gate has three things you need to recognise:

  1. A symbol — the standard shape shown in the syllabus. Learn each shape exactly; a different-looking drawing may be read as a different gate.
  2. A behaviour — a rule about what output the gate produces for each combination of inputs.
  3. A logic expression — the behaviour written in words, using the gate names — e.g. X = A AND B

Truth tables show all four (or two, for NOT) input combinations and the output for each.

§4.3 · Number of inputs — the first thing to remember

NOT has 1 input. Only one. Ever.

All other gates (AND, OR, NAND, NOR, XOR) have 2 inputs.

The syllabus says it directly: NOT is a single-input gate; all other gates are limited to two inputs. A NOT gate drawn with two inputs is not a valid gate.

§4.4 · The six gates at a glance

GateInputsOutput = 1 when…Logic expression
NOT1input is 0X = NOT A
AND2both inputs are 1X = A AND B
OR2either or both inputs are 1X = A OR B
NAND2either input is 0 (or both)X = A NAND B
NOR2both inputs are 0X = A NOR B
XOR2exactly one input is 1X = A XOR B

🎯 Pattern spotting

  • NAND is the opposite of AND — every row of the output column flipped.
  • NOR is the opposite of OR — every row of the output column flipped.
  • XOR is like OR except when both inputs are 1, then it's 0.

📎 Useful background — other notations

Some books write AND as A.B, OR as A + B and NOT as a bar over the letter. You may meet these elsewhere, but in this course write logic expressions in words, using the gate names: X = A AND B, X = NOT A, X = A NOR B.
§5 · Worked Examples · one per gate

The six gates, one by one — the doorway-guard tour

Each gate as a doorway guard. Different guards, different rules — remember the guard's rule, remember the gate.

§6 · Common Misconceptions · 10 traps

Where students lose marks (and how not to)

Some of these are noted in Cambridge examiner reports; the rest come from the syllabus and good exam habits. Every one has a fix.

§7 · Exam Focus

Useful phrases for answers

Clear, precise wording for gate questions.

"has two inputs and one output" — every gate except NOT
"has one input and one output" — NOT only
"the output is 1 when …" — a clear way to describe what any gate does
Naming a gate from its symbol: check the back (flat, curved, double curve), the front (D-shape or point) and the output (bubble or not)
Truth tables: rows in order 00, 01, 10, 11 — A on the left, output X on the right
Logic expressions in words: X = A NOR B or X = NOT (A OR B) — use brackets when NOT applies to more than one input
How gates process data: logic gates act as switches that process binary values — 1 and 0, two states (high or low voltage)
§8 · Quick Knowledge Check

Six memory-recall questions — tap to reveal

0 / 6 revealed

Q1 · How many inputs does a NOT gate have?
1. Only NOT has 1 input. All other gates (AND, OR, NAND, NOR, XOR) have 2.
Q2 · How many inputs does an AND gate have?
2. Every gate except NOT has 2 inputs — A and B.
Q3 · What is the output of an AND gate when both inputs are 1?
1. AND outputs 1 only when both inputs are 1. It's the "both must be true" gate.
Q4 · What is the output of a NAND gate when both inputs are 1?
0. NAND is the opposite of AND. If AND gives 1, NAND gives 0.
Q5 · What is the output of an XOR gate when both inputs are 1?
0. XOR means Exclusive OR — one or the other, but not both. Both = 1 gives 0. (This is the classic XOR-vs-OR trap.)
Q6 · Which gate outputs 1 only when both inputs are 0?
NOR. NOR is the opposite of OR. OR gives 0 only for 0, 0 — so NOR gives 1 only for 0, 0.
§9 · Ready for the next lab?

✅ You know the six gates — cold.

You can draw the symbol, complete the truth table, and write the logic expression for any single gate in isolation.

Next up: the Composition Lab — where you'll join these gates into circuits with up to three inputs, and move between logic expressions, truth tables and circuits.

📊 Where you are

0Practice attempts
0Exam questions
0Skills mastered

🎯 Weakest gates

🔥 Revise next

Topic 10 Path

📍 10.1–10.7 Gates Lab (this page)
10.8–10.10 Composition Lab
10.11 Problem Statements Lab
Next: Topic 11 Programming Scenarios

Cambridge syllabus

Covers Cambridge 0478 Topic 10, outcomes 1 and 2: the standard symbols for NOT, AND, OR, NAND, NOR and XOR (EOR), and the function of each gate. NOT has one input; the other gates have two. It also starts outcome 3 — truth tables and logic expressions, here for a single gate.

🎓 The gates, explained

The Learn tab takes the six gates and slows them down. Each one gets a diagram, an explanation, and a walk-through of its behaviour. When you're done here, head to Activities and open the Gate Trainer.

The anatomy of a gate

Every gate symbol has three parts you draw:

1 · Input lines — one for NOT, two for all other gates. Labelled A (and B, for 2-input gates).

2 · The body — the shape of the gate. AND has a flat back and a D-shaped front. OR has a curved back and a pointed front. NOT is a triangle.

3 · The output line — labelled X. If the gate is a "NOT-something" (NAND, NOR, or NOT itself), there's a small bubble at the output tip.

🔍 Contrast box · NAND vs AND

The difference between AND and NAND is one small circle. That circle inverts every output.

AND

Output = 1 when both inputs are 1.

ABX
000
010
100
111
NAND

Output = flipped AND. Both 1s gives 0; anything else gives 1.

ABX
001
011
101
110

The rule: every N-gate (NAND, NOR, NOT) has an output bubble. No bubble, no inversion — it's a different gate. This is Trap 5 in the Review tab.

The six gates side by side

Same layout for every gate: symbol · rule · truth table · logic expression.

Reading a truth table — the row order

2-input truth tables always show the same four rows, always in the same order:

ABX
00?
01?
10?
11?

Read down A first, then B. A = 0, B = 0. A = 0, B = 1. A = 1, B = 0. A = 1, B = 1. It counts up in binary. Use this order every time, so you never miss or repeat a row.

🧠 Row count rule

2 inputs → 4 rows. 1 input (NOT) → 2 rows. In the Composition Lab, 3 inputs → 8 rows.

Ready for Activities?

The Gate Trainer has 4 modes. Symbol → Name (easiest) walks up to Sprint (hardest). Start on Mode 1 — gates you get wrong come back more often.

🎯 Syllabus links

This lab covers these parts of the Topic 10 syllabus:

  • Outcome 1 — identify and use the standard symbols for the six gates
  • Outcome 2 — define and understand the function of each gate (NOT has 1 input; the others have 2)
  • Outcome 3 (start) — truth table and logic expression for a single gate

Not in this lab (Composition and Problem Statements Labs): circuits with more than one gate, moving between circuits, expressions and truth tables, and problem statements.

🎮 Gate Trainer

Four modes. Each one drills a different gate skill. Gates you get wrong come back more often; gates you've mastered appear less.

Sprint is 60 seconds of mixed drills. It unlocks once you've answered at least one drill in each of Modes 1, 2 and 3. Sprint is for speed — it doesn't change your Mastery.

60-second Sprint

Mixed drills from Modes 1–3. Weak gates come up more often. Streaks show at 5 · 10 · 15 correct. Sprint answers don't change your Mastery.

60Seconds left
0Correct
0Streak

📶 Gate coverage

Answers from Modes 1–3, Practice and Exam. Weak gates come up more often.

💡 Mode guide

Mode 1 · Symbol → Name. See the symbol, name the gate. Trains symbol recognition.

Mode 2 · Name → Truth Table. See "XOR", fill in the output column in order. Trains truth tables.

Mode 3 · Inputs → Output. See gate + specific A/B, predict X. Trains gate-behaviour recall.

Mode 4 · Sprint. 60s mixed drill for speed. Each drill in Modes 1–3 counts once towards Mastery; Sprint doesn't count.

✎ Practice — 18 multiple-choice questions

Gates you get wrong come back more often. Filter by difficulty or run the whole pool. Missed questions are saved to Mistakes.

🧪 Practice Exam Mode ON. No multiple-choice options shown — recall the answer, then reveal and self-mark.

📊 Practice stats

0Attempts
–Accuracy

📋 Exam-style questions — 12 questions

Paper 2 style questions on single gates. Answer every part, then press Mark my answer — truth tables, tick tables, symbols, gate names and logic expressions are checked automatically, and written answers are checked for the key points.

📋 Exam stats

0Attempts
–Average mark

ℹ️ About these questions

Written in the style of Cambridge Paper 2 (Algorithms, Programming and Logic), where Boolean logic is assessed. In the real exam you draw gate symbols — practise drawing each one on paper, then use the symbol questions here to check you can recognise them.

🔄 Review — the 10 traps + memory triggers

Common mistakes on logic gates — some of them noted in Cambridge examiner reports. Read these before your exam. Then look at Mistakes to see the ones you make.

10 traps to know

🧠 Memory triggers

Six one-liners. If you can recite these before your exam, you know the six gates.

🎯 Your weakest gates

💔 Your logged mistakes

🏆 Mastery — revision checklist

Tick each item as you master it. In the skill grid, tap a status chip to set it yourself. When all 12 are ticked, the Module Mastered banner unlocks.

🏆 Module Mastered — 10.1–10.7 Gates Lab complete!

Revision checklist

Skill grid — per-gate mastery

Mastered = 3+ attempts and ≥70% accuracy. Tap the status chip to manually override.

➡️ Next up: Composition Lab

Join gates into circuits with up to three inputs, and move between logic expressions, truth tables and circuits.

📊 Session summary

0Skills attempted
0Skills mastered
Complete Practice and Exam to unlock achievements.Achievement

Topic 10 Path

📍 10.1–10.7 Gates Lab (this page)
10.8–10.10 Composition Lab
10.11 Problem Statements Lab
Next: Topic 11 Programming Scenarios

💔 Mistakes

Your mistakes log

Every wrong Practice/Exam answer captures here automatically. Review before your next attempt.

📊 Progress

Progress dashboard

Your attempts, accuracy and mastery counts in the Gates Lab.

Practice

0Attempts
–Accuracy

Exam

0Attempts
–Avg mark

🎯 Weakest gates

🔖 Bookmarks

Bookmarked questions

Star an exam question to save it here.

📝 My Notes

My notes

Jot notes as you learn. Everything here is saved on this device only.

Add note

Notes on this page (saved on this device only)

Category
🗄️ Vault

Your knowledge vault

Sent mistakes, saved concepts, and things you want to keep. Search across everything.

Saved ✓