Logic gates worksheet
Levels 1 to 3: ages 8 to 12, plain words. Levels 4 to 8: formulas and units. The answer key prints on its own page.
Name ______________ Date ________
Logic gates: level 3
-
The numbers at the top travel down the wires into the gates. What comes out at the "?"
- A 0
- B 1
-
The numbers at the top travel down the wires into the gates. What comes out at the "?"
- A 0
- B 1
-
The numbers at the top travel down the wires into the gates. What comes out at the "?"
- A 0
- B 1
-
The numbers at the top travel down the wires into the gates. What comes out at the "?"
- A 0
- B 1
-
The numbers at the top travel down the wires into the gates. What comes out at the "?"
- A 0
- B 1
-
The numbers at the top travel down the wires into the gates. What comes out at the "?"
- A 0
- B 1
-
The numbers at the top travel down the wires into the gates. What comes out at the "?"
- A 0
- B 1
-
The numbers at the top travel down the wires into the gates. What comes out at the "?"
- A 0
- B 1
Answer key
- 1. A (0). AND gives 1 only when both inputs are 1. OR gives 1 when at least one input is 1. Step by step: the AND gate takes A = 1 and B = 0 and gives 0; then the OR gate takes the AND output (0) and B = 0 and gives 0.
- Read the numbers at the top: A is 1, B is 0.
- Follow the wires through the gates in order: the AND gate gets 1 and 0, and AND gives 1 only when both inputs are 1, so it gives 0; then the OR gate gets 0 and 0, and OR gives 1 when at least one input is 1, so it gives 0.
- The last gate sends its number to the ?. Answer: 0.
- 2. B (1). OR gives 1 when at least one input is 1. Step by step: the OR gate takes B = 0 and A = 1 and gives 1; then the OR gate takes the OR output (1) and A = 1 and gives 1.
- Read the numbers at the top: A is 1, B is 0.
- Follow the wires through the gates in order: the OR gate gets 0 and 1, and OR gives 1 when at least one input is 1, so it gives 1; then the OR gate gets 1 and 1, and OR gives 1 when at least one input is 1, so it gives 1.
- The last gate sends its number to the ?. Answer: 1.
- 3. A (0). AND gives 1 only when both inputs are 1. OR gives 1 when at least one input is 1. Step by step: the AND gate takes A = 0 and B = 0 and gives 0; then the OR gate takes the AND output (0) and B = 0 and gives 0.
- Read the numbers at the top: A is 0, B is 0.
- Follow the wires through the gates in order: the AND gate gets 0 and 0, and AND gives 1 only when both inputs are 1, so it gives 0; then the OR gate gets 0 and 0, and OR gives 1 when at least one input is 1, so it gives 0.
- The last gate sends its number to the ?. Answer: 0.
- 4. A (0). AND gives 1 only when both inputs are 1. Step by step: the AND gate takes A = 1 and B = 0 and gives 0; then the AND gate takes A = 1 and the AND output (0) and gives 0.
- Read the numbers at the top: A is 1, B is 0.
- Follow the wires through the gates in order: the AND gate gets 1 and 0, and AND gives 1 only when both inputs are 1, so it gives 0; then the AND gate gets 1 and 0, and AND gives 1 only when both inputs are 1, so it gives 0.
- The last gate sends its number to the ?. Answer: 0.
- 5. B (1). OR gives 1 when at least one input is 1. Step by step: the OR gate takes A = 1 and B = 0 and gives 1; then the OR gate takes the OR output (1) and A = 1 and gives 1.
- Read the numbers at the top: A is 1, B is 0.
- Follow the wires through the gates in order: the OR gate gets 1 and 0, and OR gives 1 when at least one input is 1, so it gives 1; then the OR gate gets 1 and 1, and OR gives 1 when at least one input is 1, so it gives 1.
- The last gate sends its number to the ?. Answer: 1.
- 6. B (1). NOT flips its input: 1 becomes 0 and 0 becomes 1. OR gives 1 when at least one input is 1. Step by step: the NOT gate takes A = 1 and gives 0; then the OR gate takes B = 1 and the NOT output (0) and gives 1.
- Read the numbers at the top: A is 1, B is 1.
- Follow the wires through the gates in order: the NOT gate gets 1, and NOT flips its input: 1 becomes 0 and 0 becomes 1, so it gives 0; then the OR gate gets 1 and 0, and OR gives 1 when at least one input is 1, so it gives 1.
- The last gate sends its number to the ?. Answer: 1.
- 7. A (0). AND gives 1 only when both inputs are 1. OR gives 1 when at least one input is 1. Step by step: the AND gate takes B = 1 and A = 0 and gives 0; then the OR gate takes the AND output (0) and A = 0 and gives 0.
- Read the numbers at the top: A is 0, B is 1.
- Follow the wires through the gates in order: the AND gate gets 1 and 0, and AND gives 1 only when both inputs are 1, so it gives 0; then the OR gate gets 0 and 0, and OR gives 1 when at least one input is 1, so it gives 0.
- The last gate sends its number to the ?. Answer: 0.
- 8. A (0). AND gives 1 only when both inputs are 1. OR gives 1 when at least one input is 1. Step by step: the AND gate takes A = 0 and B = 1 and gives 0; then the OR gate takes the AND output (0) and A = 0 and gives 0.
- Read the numbers at the top: A is 0, B is 1.
- Follow the wires through the gates in order: the AND gate gets 0 and 1, and AND gives 1 only when both inputs are 1, so it gives 0; then the OR gate gets 0 and 0, and OR gives 1 when at least one input is 1, so it gives 0.
- The last gate sends its number to the ?. Answer: 0.