📚 📁⬆

Boolean Logic

Boolean Logic

👩‍🏫 Teacher’s Guide

Objective

Students will use boolean logic (AND, OR, NOT) to evaluate simple true/false statements and connect it to conditions in programs.

Teaching Notes

  • Use truth-table style examples but keep small and visual.
  • AND means both true; OR means at least one true; NOT flips true/false.
  • Connect to real life: AND = needs both, OR = either option.
  • Relate to if statements: conditions often use boolean logic.

🧒 Student Worksheet

Concept and Helping Material

Boolean logic uses true and false. In programming, AND means both conditions must be true, OR means at least one is true, and NOT changes true to false (and false to true).

Computer Vocabulary and Definition

  • — A value that is true or false.
  • — Both conditions must be true.
  • — At least one condition is true.
  • — Changes a value to the opposite.
  • — A rule that can be true or false.

Computer QA

1. What is a boolean?

2. What does AND mean?

3. What does OR mean?

4. What does NOT do?

5. What is a condition?

6. True or False: AND needs both parts true.

7. True or False: OR needs both parts true.

8. If A is true and B is true, A AND B is what?

9. If A is true and B is false, A AND B is what?

10. If A is true and B is false, A OR B is what?

11. If A is false and B is false, A OR B is what?

12. If A is true, NOT A is what?

13. If A is false, NOT A is what?

14. Why is boolean logic useful in programs?

15. What operator means ‘either one is okay’?

16. What operator means ‘both are required’?

17. What operator flips a result?

18. True or False: Boolean logic is used in if statements.

19. If you need a password AND a username, which operator fits?

20. If you can choose tea OR juice, which operator fits?

Computer Prtactices

  • Truth practice: Fill in results for 8 simple AND/OR/NOT examples.
  • Real-life logic: Write 3 AND rules and 3 OR rules from daily life.
  • Condition building: Create an if rule using AND (if key pressed AND score>5).
  • Logic cards: Sort statements into AND, OR, or NOT groups.

Reflection

  • What does AND mean in programming?
  • Where might you use OR in real life?
Computer Science