GCSE Computer Science · public explanation

Boolean Expressions and Circuit Design

Connect Boolean expressions, truth tables and logic circuits. Define inputs, follow grouped operations and check the notation required by your GCSE board.

Read the explanation and worked examples, then choose your exam board to continue with activities and practice in your account.

OCR J277On the specificationOCR J277 2.4.1

Use AND, OR and NOT to interpret, complete and compare scenario-based logic circuits and truth tables.

AQA 8525 (2027+)On the specificationAQA 8525 3.4.2

Interpret Boolean gates, expressions, circuits and truth tables in computing concepts. Both supported editions include XOR and symbolic operator notation.

Turn a precise requirement into a Boolean expression

Keep the cabinet meanings: A is door open, B is nearby movement, C is system armed, and Q is warning active. Each name describes one condition that can be true or false. Define these meanings before writing an expression.

The requirement has two ways to activate Q: an open door always activates it; nearby movement activates it only while armed. The first way is A. The second way requires both B and C, so it is B AND C. Joining the two ways gives Q = A OR (B AND C).

Brackets say which conditions work together

In A OR (B AND C), B and C form the movement-while-armed condition. Calculate that bracketed group first. It becomes one input to the surrounding OR operation; A is the other input.

Moving the brackets to (A OR B) AND C changes the rule. Now C is required for every warning, including an open-door warning. That contradicts the word always in the stated door requirement.

One concrete counterexample: the door is open while unarmed

  1. Use A = 1, B = 0, C = 0.
  2. Required design: B AND C = 0, then A OR 0 = 1.
  3. Wrongly grouped design: A OR B = 1, then 1 AND C = 0.

The required design warns; the wrongly grouped design does not. The two groupings do not mean the same thing.

Build the inner operation and connect its output

For Q = A OR (B AND C), draw an AND gate with B and C connected to its two inputs. Label its output X. Draw an OR gate, connect A to one input and X to the other, then label the OR output Q.

The B and C wires do not separately enter the final OR: their combined result X enters it. Keep the gate symbols recognisable and make every connection unambiguous. A label alone is not a wire.

Read the finished drawing back into words: Q is A OR X, and X is B AND C. Substituting the definition of X recovers A OR (B AND C). This checks that the drawing has kept the intended grouping.

AQA focus

AQA: read the operator signs as gate rules

AQA also writes AND as a dot, OR as a plus sign and XOR as a circled plus. These are Boolean operators, not ordinary arithmetic: 1 OR 1 is 1, not 2. The cabinet expression can be written Q = A + (B . C).

An overbar means NOT. Its span matters: a bar above A reverses only A; a bar above a whole bracketed expression reverses that group's result. Read the covered expression first, then reverse its Boolean output.

XOR produces 1 when its two inputs differ. It is needed in both supported AQA editions. It is not interchangeable with OR: their outputs differ when both inputs are 1.

Continue with your exam board

The course combines lesson videos, interactive activities, topic questions and original exam mocks. Sign in to use the learning tools and save your progress; your account’s course access applies.

Independent learning resources. Not endorsed by AQA or OCR. These public introductions complement the full course and the official specification.