Boolean: a value that is true or false; truth table: all input cases and their outputs
55-minute lesson sequence
0–5 · Retrieve four cases.
5–15 · Model the gate reference, the rule and inclusive OR.
15–25 · Build task 1 one column at a time.
25–45 · Students construct and check the lamp table and standard gate diagram.
45–50 · Each points to the path for S=1,D=1 and explains the zero.
50–55 · Collect the OR exit explanation.
Try before notes
How many input cases do two Boolean inputs have?
Build the idea
A Boolean value has only two possibilities: false or true. In a circuit table we write these as 0 and 1. These are logical states, not measurements of how strongly something is true.
AND needs both conditions. OR needs at least one condition, including the case where both are true. NOT has one input and reverses it. Read a rule aloud before choosing a gate.
With two inputs there are four cases. Keep the order 00, 01, 10, 11. This makes it easier to compare columns and harder to miss a case. Trace each gate before writing the final output.
rain R ──┐
AND → warning
wind W ──┘
See the method
A = card is valid. B = door is unlocked. Y = A AND B is 1 only when both inputs are 1. A OR B is 1 when at least one is 1. NOT A reverses A. In these tables, 0 means false and 1 means true. See the gate reference page.
Predict then reveal
A warning needs rain AND wind. Find the output for R,W = 00,01,10,11.
Reveal reasoning
AND needs two 1s. The outputs are 0,0,0,1. At 10 there is rain but no wind, so this particular rule stays off.
An entry light is on when a visitor is present V OR a test switch T is on. What happens at V=1,T=1? Then change the rule to V AND NOT T.
Reveal reasoning
OR gives 1 because at least one input is 1. For the changed rule, NOT T=0, then 1 AND 0=0. The same inputs can produce different outputs when the rule changes.
Work one step together
Read the first task. Each learner predicts the first step privately. Compare the method, then complete one intermediate row or one code iteration together. Do not display a finished workbook answer.
Practice
Make rows 00, 01, 10, 11. Add output columns for A AND B and A OR B. Add a NOT A column.
A | B | AND | OR | NOT A
0 | 0 | | |
0 | 1 | | |
1 | 0 | | |
1 | 1 | | |
Your turn
Complete the remaining steps of task 1 alone, then the next tasks. Predict before running code. Save your own evidence before comparing.
Practice
Make rows 00, 01, 10, 11. Add output columns for A AND B and A OR B. Add a NOT A column.
A | B | AND | OR | NOT A
0 | 0 | | |
0 | 1 | | |
1 | 0 | | |
1 | 1 | | |
A lamp turns on if a switch S is on and it is not daylight D. Write the expression. Make all four rows. Draw the standard gate diagram.
Check and explain
OR does not mean exactly one. At 11 both AND and OR are 1.
Point to the first step, row, condition or requirement that supports your answer. If results differ, find the first different state and repair one cause.
Show what you know
Does OR mean exactly one input must be 1?
HL challenge when ready
Check your lamp rule in Python for every input pair.
Week 2 homework
Show working. Keep code and output. Stop at 25 minutes and mark where you reached.
Make a truth table for Y=(A AND B) OR NOT C. Show intermediate columns and all eight rows.
Draw Y using standard gate symbols. Write a Python expression with the same meaning.
Simplify (X AND Y) OR (NOT X AND Y). Use algebra and a two-variable Karnaugh map.
A learner says XOR and OR are always equal. Give one counterexample.
Spend about 3 minutes on each during practice time. Predict, run, change one thing, then explain. These prompts do not add homework.
A starter is runnable code to explore or complete. If the playground restores your saved code, the linked starter is selected in Example: use Load example when ready. Download your work before confirming replacement.
Prompt 1
Print all four input combinations for AND. Change and to or and explain the changed rows.
No imports needed.
Hint and starter code
Boolean values are True and False; and requires both to be true.
# Boolean values are True and False; and requires both to be true.
for a in [False, True]:
for b in [False, True]:
print(a, b, a and b)