SLIDE 1
CSZone.co.uk
Click to advance · Arrow keys also work
Edexcel 1CP2 · Topic 2 · 2.3a

Boolean Logic:
Logic Gates

AND · OR · NOT · NAND · NOR · XOR · Truth Tables

CSZoneEdexcel GCSE Computer Science 1CP2
What are Logic Gates?

Electronic Decision Makers

Logic gates are electronic components that process binary inputs (0 or 1) to produce binary outputs, based on Boolean logic. They are the building blocks of all processors.
AND: output is 1 only if BOTH inputs are 1
OR: output is 1 if AT LEAST ONE input is 1
NOT: output is the OPPOSITE of the input (inverter)
NAND / NOR: AND/OR with output inverted
XOR: output is 1 if inputs are DIFFERENT
Truth Tables: AND and OR

All Possible Input/Output Combinations

AND Gate
ABA AND B
000
010
100
111
OR Gate
ABA OR B
000
011
101
111
NOT, XOR, NAND

More Essential Gates

NOT
ANOT A
01
10
XOR
ABXOR
000
011
101
110
NAND
ABNAND
001
011
101
110
Exam Practice

Have a go at this question

Edexcel-style question
Complete the truth table for the expression: Q = (A AND B) OR (NOT C), for all inputs where A=1, B=0, C=1.
3 marks
A AND B = 1 AND 0 = 0 [1]
NOT C = NOT 1 = 0 [1]
Q = 0 OR 0 = 0 [1]
Key Takeaways

What to Remember

AND: 1 only if both inputs = 1
OR: 1 if at least one input = 1
NOT: inverts; XOR: 1 if inputs are different; NAND/NOR: inverted AND/OR
For n inputs, a truth table has 2ⁿ rows