Free November promotion: everything is free until 30 November 2026 — every subject, unlimited practice.
Subjects / LC Computer Science / Strand 2: Core concepts

Logic gates and Boolean logic

AND, OR, NOT, XOR, NAND and NOR gates, truth tables and Boolean expressions.

5th Year6th Year HigherOrdinary
Helps to know first: Binary, hexadecimal and denary
15practice questions

Fill the gaps: 2 · Match the pairs: 2 · Multiple choice: 7 · Numeric answer: 3 · Written answer (self/teacher assessed): 1

Each question has up to three hints, a worked explanation, and is tracked in your progress and review plan.

Practise this topic

Try a question

Fill the gaps
An AND gate outputs 1 only when inputs are 1. An OR gate outputs 1 when input is 1.
Hint 1

Think about a light that needs two switches on, versus one that needs either.

Create a free account to save your progress.