Boolean Logic and Logic Gates

GCSE Computer Science · Computer Systems

The three basic gates

GateSymbol notationOutput is 1 when…
ANDA · Bboth inputs are 1
ORA + Beither input is 1
NOT¬Athe input is 0 (it inverts)

Truth tables

A B | AND  OR
0 0 |  0    0
0 1 |  0    1
1 0 |  0    1
1 1 |  1    1
A | NOT A
0 |   1
1 |   0

Combining gates

Q = A AND (NOT B) — build the table column by column:

A B | NOT B | A AND NOT B
0 0 |   1   |     0
0 1 |   0   |     0
1 0 |   1   |     1
1 1 |   0   |     0

Exam tip

Build truth tables one column at a time, working from the innermost brackets outwards. AND needs both 1; OR needs at least one 1; NOT flips the value.

Don't understand a part?

Sign in and ask our AI tutor to explain any passage in plain English.

Try AI explanations →

More on Computer Systems

The CPU and Fetch–Execute Cycle Memory and Storage

← All GCSE Computer Science notes