CS: Boolean Logic and Logic Gates
Using true and false values to model digital decisions
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.
Related Cheat Sheets
More CS Worksheets
CS: Algorithms and Flowcharts
Grade 6-8 · 12 problems
CS: Arrays and Lists
Grade 9-12 · 12 problems
CS: Big-O Notation and Algorithm Efficiency
Grade 9-12 · 12 problems
CS: Binary Numbers and Number Systems
Grade 6-8 · 12 problems
More Grade 6-8 Worksheets
Ratios & Proportions
Math · 8 problems
Forces & Motion
Physics · 8 problems
Figurative Language
Language Arts · 8 problems
US Government & Civics
Social Studies · 8 problems