Logic Gates · Cambridge syllabus 10.1, 10.2 · Lesson 2 of 5
AND Gate
An AND gate outputs 1 only when all its inputs are 1. For two inputs, the 00, 01 and 10 cases give 0; only 11 gives 1.
By the end, you can
- Understand the AND gate.
- Construct and interpret an AND truth table.
- Determine the output for given inputs.
AND operation
An AND gate has two inputs and produces 1 only when both of them are 1. Any other combination gives 0.
Its truth table has four rows, because two inputs give four combinations: 0 and 0 give 0; 0 and 1 give 0; 1 and 0 give 0; 1 and 1 give 1. Learning it as one 1 at the bottom of the output column is quicker than learning four separate rules.
The physical picture is two switches in series. The current only flows when both are closed, and opening either one breaks the circuit — which is exactly the rule.
Its symbol is a shape with a flat left side and a semicircular right side, with no circle on the output. In a logic expression it is written in words: X = A AND B.
It is the gate for conditions that must all hold at once. A microwave should run only when the door is closed AND the timer is running; a door should open only when the card is valid AND the time is within working hours.
Worth remembering
- AND gives 1 only when both inputs are 1.
- Four rows, with a single 1 in the output column.
- Written A AND B in a logic expression.
Worked example
A door may unlock only when a valid card AND a correct PIN are both present.
Practice
Warm-up · not marked
Check your understanding
Answer in your own words, then compare with the worked answer. Nothing here is saved or scored.
Worked answer
0, because both inputs are not 1.
Check your method, units and explanation against it.
Marked practice
Set 1 of 4 · easiest first · Checked as you go, with the worked answer. Sign in or create a free account to save your progress.