Computer Science: Logic Gates
Building and analyzing Boolean logic circuits
Building and analyzing Boolean logic circuits
Computer Science - Grade 9-12
- 1
Complete the truth table for an AND gate with inputs A and B. List the output for A,B values 00, 01, 10, and 11.
- 2
Complete the truth table for an OR gate with inputs A and B. List the output for A,B values 00, 01, 10, and 11.
- 3
Complete the truth table for a NOT gate with input A. List the output for A values 0 and 1.
- 4
A circuit has inputs A = 1 and B = 0 connected to an AND gate. What is the output? Explain your answer.
- 5
A circuit has inputs A = 1 and B = 0 connected to an OR gate. What is the output? Explain your answer.
- 6
A circuit first sends input A through a NOT gate, then sends the result and input B into an AND gate. If A = 0 and B = 1, what is the final output?
- 7
Write the Boolean expression for a circuit where inputs A and B go into an AND gate, and the result is inverted by a NOT gate.
- 8
A NAND gate is the opposite of an AND gate. Complete the NAND output for A,B values 00, 01, 10, and 11.
- 9
A NOR gate is the opposite of an OR gate. Complete the NOR output for A,B values 00, 01, 10, and 11.
- 10
An XOR gate outputs 1 when exactly one input is 1. Complete the XOR output for A,B values 00, 01, 10, and 11.
- 11
A circuit computes (A OR B) AND C. If A = 0, B = 1, and C = 1, what is the output?
- 12
A circuit computes A AND (NOT B). If A = 1 and B = 1, what is the output?
- 13
For the expression (A AND B) OR (A AND C), find the output when A = 1, B = 0, and C = 1.
- 14
A security light should turn on only when it is night and motion is detected. Let N = 1 mean it is night, and M = 1 mean motion is detected. Which logic gate should be used, and why?
- 15
A warning buzzer should turn on if a door is open or a window is open. Let D = 1 mean the door is open, and W = 1 mean the window is open. Which logic gate should be used, and why?
More Grade 9-12 Worksheets
Linear Equations
Math · 8 problems
Cell Biology
Biology · 8 problems
Reading Comprehension
Language Arts · 8 problems
Historical Thinking & Evidence
Social Studies · 8 problems