Computers process data using binary (0 and 1). Boolean logic applies mathematical rules to these binary values. Everything a computer does — from simple arithmetic to complex decisions — is built from logic gates.
Symbol: NOT A or Ā
Output is the opposite of the input.
| A | NOT A |
|---|---|
| 0 | 1 |
| 1 | 0 |
Symbol: A AND B or A · B
Output is 1 only when ALL inputs are 1.
| A | B | A AND B |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
Symbol: A OR B or A + B
Output is 1 when ANY input is 1.
| A | B | A OR B |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 1 |
Symbol: A XOR B or A ⊕ B
Output is 1 when inputs are different. Output is 0 when both are the same.
| A | B | A XOR B |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
NAND = NOT AND (inverted AND output). NOR = NOT OR (inverted OR output).
| A | B | NAND | NOR |
|---|---|---|---|
| 0 | 0 | 1 | 1 |
| 0 | 1 | 1 | 0 |
| 1 | 0 | 1 | 0 |
| 1 | 1 | 0 | 0 |
NAND is a universal gate — any other gate can be built entirely from NAND gates.
For the exam, know these shape descriptions:
8 Edexcel-style questions · instantly marked
| Term | Definition |
|---|
Timed exam-style test.