OCR GCSE Computer Science · Component 2

💡 Logic Gate Puzzles

Toggle inputs, trace signals through gates, work out the output

Score 0
Level 1 / 4
Streak 0 💡
Level 1 · Puzzle 1
Circuit
TARGET OUTPUT
?
Current output:
?
🎛 INTERACTIVE MODE
Toggle the inputs above to explore the circuit. Try all combinations and watch the output change. When the output matches the TARGET press Check!
AND
Output is 1 only if BOTH inputs are 1
0 AND 0 = 0 | 1 AND 0 = 0 | 1 AND 1 = 1
OR
Output is 1 if AT LEAST ONE input is 1
0 OR 0 = 0 | 1 OR 0 = 1 | 1 OR 1 = 1
NOT
Output is the OPPOSITE of the input
NOT 0 = 1 | NOT 1 = 0
NAND
NOT AND — opposite of AND
1 NAND 1 = 0 | anything else = 1
NOR
NOT OR — opposite of OR
0 NOR 0 = 1 | anything else = 0
XOR
Output is 1 if inputs are DIFFERENT
0 XOR 1 = 1 | 1 XOR 1 = 0
Boolean notation: AND = A.B  |  OR = A+B  |  NOT A = Ā  |  NAND = ¬(A.B)  |  NOR = ¬(A+B)  |  XOR = A⊕B
💡

Logic Gates

A logic gate takes one or two binary inputs (0 or 1 — think of them as FALSE and TRUE) and produces a single binary output. Real computer circuits are built from millions of these gates.

🔵
AND
Both must be 1
🟢
OR
At least one is 1
🟠
NOT
Flip the input
🟣
NAND
Opposite of AND
🟡
NOR
Opposite of OR
🔴
XOR
Inputs must differ

Choose a Level

Pick up where you left off, or jump straight to the topic you want to practise.

🎉

🏆 PAPER 2 COMPLETE!
You've completed all 8 Computer Science Quest scenarios covering the full OCR J277 specification. Time to revise — then ace that exam!