Practice evaluating Boolean expressions, completing truth tables, and understanding how basic logic gates work in computer systems.
Read each problem carefully. Use true or false values as directed. Show your work in the space provided.
Using true and false values to model digital decisions
CS - Grade 6-8
- 1
In Boolean logic, a value can be either true or false. A variable A is true. What is NOT A?
- 2
Evaluate the expression: true AND false.
- 3
Evaluate the expression: true OR false.
- 4
Complete this truth table for A AND B: A = true, B = true. What is the output?
- 5
Complete this truth table for A AND B: A = true, B = false. What is the output?
- 6
Complete this truth table for A OR B: A = false, B = false. What is the output?
- 7
Complete this truth table for A OR B: A = false, B = true. What is the output?
- 8
A light turns on only when switch A is on and switch B is on. Which logic gate models this rule: AND, OR, or NOT?
- 9
A school website allows login if a user has a password OR a one-time code. Which logic gate models this rule: AND, OR, or NOT?
- 10
Evaluate the expression: NOT false AND true. Use normal order where NOT happens before AND.
- 11
Evaluate the expression: NOT (true OR false).
- 12
A game door opens when a player has a key AND has completed the puzzle. If hasKey = true and puzzleComplete = false, does the door open? Explain using Boolean logic.