Worked lessons
How do I build a truth table for AND, OR and NOT?
List every combination of truth values and evaluate the rule one row at a time. Keep the meaning of each input visible.
Worked example
A locker opens if the badge is valid AND the lock is NOT jammed. Let V mean valid and J mean jammed. In row order (false,false), (false,true), (true,false), (true,true), the output is false, false, true, false. A good badge cannot open a jammed lock.
Try it yourself
Keep NOT J but change AND to OR. Which previously closed cases now open?
Check your answer
V OR NOT J gives true, false, true, true in the same order. The first and last rows changed. Checking all four rows reveals why that operator change weakens the rule.
Try a lesson tonight. Learn together.
Two minutes to set up. The first five-minute lesson is free, no card needed. Pick a subject your child has homework in.
Try the free lessonLast checked . Tutorwell is an AI tutor, not a person, and it tells your child so.