Teacher Guide: Introduction to Boolean Logic
Learn the fundamentals of Boolean logic and how TRUE/FALSE values work in mathematics and computing.
Use this lesson with your class
Free, no student accounts needed.
Share with students
Students open the lesson and practise with instant feedback.
Class quiz
10 questions on Boolean Logic. Students join with a name, you see everyone's score.
For Teachers
- Define Boolean logic and explain its two possible values (TRUE/FALSE)
- Apply the AND operator to determine when both conditions must be true
- Apply the OR operator to determine when at least one condition must be true
- Apply the NOT operator to reverse Boolean values
- Evaluate compound Boolean expressions using multiple operators
- Recognize real-world applications of Boolean logic
- • Basic understanding of true and false statements
- • Ability to follow logical reasoning
- • Familiarity with order of operations (parentheses first)
- 1. Where have you seen TRUE/FALSE decisions in your daily life?
- 2. Why do you think computers use only TRUE and FALSE instead of more values?
- 3. Can you think of a decision that uses both AND and OR?
- 4. How would you explain the difference between AND and OR to a younger student?
Boolean OR is exclusive (one or the other, not both)
AND and OR can be used interchangeably
For Struggling Students:
- • Use physical cards with TRUE/FALSE written on them
- • Start with only one operator at a time before combining
- • Use real-world yes/no scenarios exclusively
For On-Level Students:
- • Evaluate expressions with two operators
- • Create their own Boolean expressions for scenarios
- • Complete partial truth tables
For Advanced Students:
- • Introduce XOR (exclusive or) operator
- • Explore De Morgan's laws: NOT(A AND B) = (NOT A) OR (NOT B)
- • Connect to programming with if-statements
- CSTA 2-AP-10 (CSTA.2-AP-10)
Use flowcharts and/or pseudocode to address complex problems as algorithms
- CCSS.MATH.PRACTICE.MP2 (CCSS.MATH.PRACTICE.MP2)
Reason abstractly and quantitatively
- visualInteractive Truth Table Explorer
Students manipulate inputs and see outputs change instantly
- activityBoolean Logic Scavenger Hunt
Find examples of AND/OR/NOT in everyday situations
- worksheetBoolean Expression Practice
Evaluate expressions and create truth tables
Lesson Content
Everything students see: definition, examples, common mistakes, applications. Tap to open.
Lesson Content
Everything students see: definition, examples, common mistakes, applications. Tap to open.
Definition
- AND (): Both must be true
- OR (): At least one must be true
- NOT (): Reverses the value
Worked Examples
You need both a ticket AND a valid ID to enter. If you have a ticket (TRUE) but no ID (FALSE), can you enter?
Identify the values
Ticket = TRUE (1), ID = FALSE (0) → Two Boolean values
Apply AND rule
AND requires BOTH to be TRUE → TRUE AND FALSE
Evaluate
Since one value is FALSE, the result is FALSE →
Answer: No, you cannot enter. TRUE AND FALSE = FALSE
Common Mistakes
Thinking OR means 'one or the other, but not both'
Why it's wrong: In everyday language, 'or' often implies exclusivity. In Boolean logic, OR includes the case where both are true.
Correct: In Boolean logic: TRUE OR TRUE = TRUE. OR means 'at least one is true'.
Confusing AND with OR
Why it's wrong: Both combine two values, so it's easy to mix them up.
Correct: AND is stricter (needs BOTH true). OR is more lenient (needs just ONE true).
Forgetting that NOT flips the value completely
Why it's wrong: Students sometimes think NOT makes something 'less true' rather than the opposite.
Correct: NOT is absolute: NOT TRUE = FALSE, NOT FALSE = TRUE. No middle ground.
Why It Matters
- Computers: Every computer operation breaks down to billions of TRUE/FALSE decisions
- Search Engines: When you search "cats AND dogs", the engine uses Boolean logic
- Video Games: If (player_health = 0) AND (lives = 0) then game_over = TRUE
- Everyday Decisions: "I'll go outside IF it's sunny AND warm"
- Passwords: Access granted IF (username_correct AND password_correct)
Real World Applications
Search Engines
Search engines use Boolean logic to filter results based on your query.
Example:
Searching 'pizza AND delivery AND NOT expensive' finds pizza places that deliver but aren't pricey.
You search for: 'cats OR dogs AND NOT fish'
Would a page about 'cats and fish' appear in results?
Step 1: Write the mathematical expression
Evaluate: cats = TRUE, dogs = FALSE, fish = TRUE
Video Game Logic
Games use Boolean logic constantly to make decisions about gameplay.
Example:
In a racing game: boost_available = (fuel > 50) AND (NOT already_boosting) AND (speed < max_speed)
A player can attack IF (has_weapon AND NOT stunned) OR has_special_power. The player has a weapon (TRUE), is not stunned (FALSE), but has special power (TRUE).
Can the player attack?
Step 1: Write the mathematical expression
Evaluate step by step
Security Systems
Security and access control systems rely heavily on Boolean logic.
Example:
Access granted IF (valid_badge AND correct_PIN) OR (is_admin AND emergency_override)
Building security: alarm_triggered = (motion_detected AND night_mode) OR (window_broken)
It's daytime (night_mode = FALSE), motion is detected (TRUE), and no windows are broken (FALSE). Does the alarm trigger?
Step 1: Write the mathematical expression
Evaluate the security expression
Key Takeaways
- 1Boolean logic uses only two values: TRUE (1) and FALSE (0)
- 2AND () returns TRUE only when BOTH inputs are TRUE
- 3OR () returns TRUE when AT LEAST ONE input is TRUE
- 4NOT () reverses the value: TRUE becomes FALSE, FALSE becomes TRUE
- 5Boolean logic is the foundation of all computing and digital technology
Frequently Asked Questions
Why is it called Boolean?
Why do computers use 1 and 0?
Is Boolean OR the same as everyday 'or'?
Glossary
- Boolean
- A data type or system that has exactly two possible values: TRUE and FALSE
- AND ()
- A logical operator that returns TRUE only if both inputs are TRUE
- OR ()
- A logical operator that returns TRUE if at least one input is TRUE
- NOT ()
- A logical operator that reverses a Boolean value (TRUE becomes FALSE and vice versa)
- Truth Table
- A table showing all possible input combinations and their corresponding outputs for a logical operation
- Binary
- A number system using only two digits (0 and 1), closely related to Boolean logic