RecallStrideA BreakellSystems productTry revision

OCR J277 · Computational thinking, algorithms and programming

Boolean logic revision

Evaluate AND, OR and NOT expressions, construct truth tables and interpret simple logic circuits.

OCR GCSE Computer Science · Topic 2.4.1 · By RecallStride / BreakellSystems

Try J277 revisionAll J277 topics

What to know about boolean logic

Two possible truth values

Boolean expressions evaluate to true or false, often represented as 1 and 0. AND produces true only when both inputs are true. OR is inclusive: it produces true when either or both inputs are true. NOT reverses one truth value. Do not treat OR as meaning exactly one input unless exclusive OR is explicitly intended.

Truth tables without guessing

For two inputs, list 00, 01, 10 and 11 so every combination is represented once. The AND output column is 0,0,0,1; OR is 0,1,1,1. A single-input NOT maps 0 to 1 and 1 to 0. For n independent Boolean inputs there are 2^n combinations.

Focus areas: Boolean logic.

Test yourself: questions and answers

Answer each prompt from memory before opening the explanation. These 4 samples come from this topic's 8 original retrieval cards.

When does A AND B produce true?

Only when both A and B are true.

When does inclusive A OR B produce true?

When at least one input is true, including both.

What does NOT do?

Reverses a Boolean value.

How many rows are needed for a truth table with three Boolean inputs?

8, because 2^3 = 8.

Turn this topic into a revision session

  1. Explain one idea without looking at the notes.
  2. Compare your answer with the guidance and identify the missing link.
  3. Apply it in a question or short program, then revisit it after a delay.

Free accounts choose one revision topic pack. Pro includes all 26 packs in this course and both published qualifications. Public samples and coding practice are free; PDF guides are separate purchases.

Create a free account

Specification and sources

Check the required scope against the official OCR J277 specification (PDF). RecallStride's explanations and examples are independent learning resources. See our editorial policy or report a correction, including the topic code and statement concerned.