OCR J277 · Component 02 · §2.4 · Paper 2

§2.4 Boolean Logic

How do AND, OR, and NOT gates process binary inputs — and how do you trace a logic circuit through a truth table?

Boolean logic is the foundation of all digital electronics. Every decision a computer makes — whether an IF condition is true, whether a circuit should output a 1 — reduces to the three fundamental gates: AND (outputs 1 only when both inputs are 1), OR (outputs 1 when at least one input is 1), and NOT (inverts the input). These three gates can be combined into any logic circuit, and any logic circuit can be described by a truth table.

OCR requires AND, OR, and NOT only — XOR is not in the spec, which is a key contrast with AQA. Students must draw and read logic diagrams using the standard gate symbols, construct truth tables for simple and compound expressions (multiple gates in sequence or combination), and apply logic to solve a described real-world problem. The connection to programming is direct: every IF condition in code is a Boolean expression being evaluated by the CPU's logic gates.

A circuit has inputs A, B, and C. The output X = (A AND B) OR (NOT C). (a) Complete the full truth table (8 rows). (b) For how many input combinations is X = 1? (c) A security door opens if a valid key card is used AND the alarm is not triggered. Write this as a Boolean expression.

Truth table templates

AND: A=0,B=0→0 | A=0,B=1→0 | A=1,B=0→0 | A=1,B=1→1
OR: A=0,B=0→0 | A=0,B=1→1 | A=1,B=0→1 | A=1,B=1→1
NOT: A=0→1 | A=1→0
NAND = NOT(A AND B); NOR = NOT(A OR B) — can appear in diagrams

What students must understand

Diagrams

AND gate truth table shown physically: two switches in series light a bulb only when both are closed, beside gate symbols for all four input pairs
The AND gate. Output is 1 only when both inputs are 1, shown here as switches and a bulb.
OR gate truth table shown physically: the bulb lights when either switch is closed, beside gate symbols for all four input pairs
The OR gate. Output is 1 when at least one input is 1.
Logic circuit with inputs A, B and C passing through an AND gate and an OR gate into another OR gate, then a NOT gate, to output Q
A logic circuit built from AND, OR and NOT gates. Trace each input combination through to Q.

Diagrams: PG Online (Paul Long), OCR J277 textbook. Used under the school site licence.

Linking questions

Practice

Video Support

Craig'n'Dave — OCR J277
Simple logic diagrams
Truth tables
Combining Boolean operators
Applying logical operators in truth tables