Electronics Worksheet: Input and Output Pins
Remember (Read in, drive out): Inputs: buttons, knobs, sensors. Outputs: LEDs, buzzers, motors, displays. Digital: HIGH (≈ 5 V) or LOW (0 V) only. Analog: any value in a range. Trace the program: only the LED’s own pin matters, and its last command decides ON or OFF.
NameDateTime takenScore ___ / 40
- 1.📶 How many states can a digital pin have? (a) a thousand (b) one (c) ten (d) two
- 2.True or false: “a button: pressed or not” is a digital signal. (a) False (b) True
-
3.💡 An LED (with its resistor) is on pin 7. All pins start LOW. The program runs once:
set pin 7 LOW
set pin 8 HIGH
set pin 7 LOW
set pin 7 LOW
Is the LED ON or OFF at the end? (a) OFF (b) ON - 4.🔌 Is a motor an input or an output for a microcontroller? (a) input (b) output
- 5.🔌 Is a light sensor an input or an output for a microcontroller? (a) output (b) input
-
6.💡 An LED (with its resistor) is on pin 8. All pins start LOW. The program runs once:
set pin 8 HIGH
set pin 7 LOW
set pin 8 LOW
set pin 8 HIGH
Is the LED ON or OFF at the end? (a) ON (b) OFF - 7.Which of these is an input? (a) a buzzer (b) a turning knob (c) a speaker (d) an LED
- 8.🔍 Which is the odd one out? (a) a small display (b) an LED (c) a motor (d) a motion sensor
- 9.🔍 Which is the odd one out? (a) a speaker (b) a keypad (c) a water pump (d) a small display
-
10.💡 An LED (with its resistor) is on pin 7. All pins start LOW. The program runs once:
set pin 8 HIGH
set pin 8 LOW
Is the LED ON or OFF at the end? (a) ON (b) OFF - 11.🔌 Is a motion sensor an input or an output for a microcontroller? (a) input (b) output
- 12.Which of these is an output? (a) a temperature sensor (b) a motion sensor (c) a turning knob (d) a water pump
-
13.💡 An LED (with its resistor) is on pin 7. All pins start LOW. The program runs once:
set pin 8 LOW
set pin 8 HIGH
Is the LED ON or OFF at the end? (a) ON (b) OFF - 14.Which of these is an input? (a) a motor (b) an LED (c) a push button (d) a buzzer
-
15.💡 An LED (with its resistor) is on pin 8. All pins start LOW. The program runs once:
set pin 7 HIGH
set pin 8 HIGH
set pin 7 LOW
set pin 7 HIGH
set pin 7 LOW
Is the LED ON or OFF at the end? (a) OFF (b) ON -
16.💡 An LED (with its resistor) is on pin 8. All pins start LOW. The program runs once:
set pin 8 HIGH
set pin 8 LOW
set pin 7 LOW
set pin 7 LOW
set pin 8 HIGH
Is the LED ON or OFF at the end? (a) OFF (b) ON - 17.🔌 Is a buzzer an input or an output for a microcontroller? (a) input (b) output
-
18.💡 An LED (with its resistor) is on pin 8. All pins start LOW. The program runs once:
set pin 8 HIGH
set pin 7 LOW
set pin 7 LOW
set pin 7 LOW
set pin 7 LOW
Is the LED ON or OFF at the end? (a) ON (b) OFF -
19.💡 An LED (with its resistor) is on pin 8. All pins start LOW. The program runs once:
set pin 8 LOW
set pin 7 HIGH
set pin 7 HIGH
set pin 7 LOW
Is the LED ON or OFF at the end? (a) OFF (b) ON -
20.💡 An LED (with its resistor) is on pin 8. All pins start LOW. The program runs once:
set pin 7 LOW
set pin 7 HIGH
set pin 7 LOW
set pin 8 HIGH
set pin 7 HIGH
Is the LED ON or OFF at the end? (a) ON (b) OFF -
21.💡 An LED (with its resistor) is on pin 7. All pins start LOW. The program runs once:
set pin 7 LOW
set pin 7 HIGH
set pin 8 HIGH
set pin 7 HIGH
Is the LED ON or OFF at the end? (a) OFF (b) ON - 22.📶 Digital or analog: a knob turned part way? (a) analog (b) digital
- 23.True or false: “a button: pressed or not” is an analog signal. (a) True (b) False
-
24.💡 An LED (with its resistor) is on pin 7. All pins start LOW. The program runs once:
set pin 8 HIGH
set pin 7 HIGH
Is the LED ON or OFF at the end? (a) OFF (b) ON -
25.💡 An LED (with its resistor) is on pin 8. All pins start LOW. The program runs once:
set pin 7 HIGH
set pin 7 HIGH
set pin 7 HIGH
set pin 8 LOW
Is the LED ON or OFF at the end? (a) ON (b) OFF - 26.🔌 Is a water pump an input or an output for a microcontroller? (a) input (b) output
-
27.💡 An LED (with its resistor) is on pin 7. All pins start LOW. The program runs once:
set pin 8 LOW
set pin 8 LOW
set pin 8 LOW
Is the LED ON or OFF at the end? (a) OFF (b) ON -
28.💡 An LED (with its resistor) is on pin 7. All pins start LOW. The program runs once:
set pin 7 HIGH
set pin 7 HIGH
set pin 7 HIGH
set pin 8 HIGH
Is the LED ON or OFF at the end? (a) ON (b) OFF -
29.💡 An LED (with its resistor) is on pin 8. All pins start LOW. The program runs once:
set pin 7 HIGH
set pin 8 LOW
Is the LED ON or OFF at the end? (a) ON (b) OFF - 30.Which of these is an output? (a) a light sensor (b) a push button (c) a temperature sensor (d) a speaker
-
31.💡 An LED (with its resistor) is on pin 7. All pins start LOW. The program runs once:
set pin 7 LOW
set pin 7 LOW
Is the LED ON or OFF at the end? (a) ON (b) OFF - 32.🔌 Is a sound sensor an input or an output for a microcontroller? (a) output (b) input
- 33.🔌 Is a turning knob an input or an output for a microcontroller? (a) output (b) input
- 34.Which of these is an input? (a) a small display (b) an LED (c) a temperature sensor (d) a buzzer
- 35.True or false: “a knob turned part way” is a digital signal. (a) False (b) True
- 36.📶 Digital or analog: how bright a room is? (a) digital (b) analog
- 37.📶 Digital or analog: HIGH or LOW only? (a) analog (b) digital
- 38.True or false: “the room temperature” is an analog signal. (a) False (b) True
- 39.📶 A pin that reads a push button is set as … (a) an input (b) a resistor (c) an output (d) a battery
-
40.💡 An LED (with its resistor) is on pin 8. All pins start LOW. The program runs once:
set pin 7 LOW
set pin 8 HIGH
set pin 8 LOW
set pin 8 LOW
Is the LED ON or OFF at the end? (a) OFF (b) ON
Answer key
- two
- True
- OFF
- output
- input
- ON
- a turning knob
- a motion sensor
- a keypad
- OFF
- input
- a water pump
- OFF
- a push button
- ON
- ON
- output
- ON
- OFF
- ON
- ON
- analog
- False
- ON
- OFF
- output
- OFF
- ON
- OFF
- a speaker
- OFF
- input
- input
- a temperature sensor
- False
- analog
- digital
- True
- an input
- OFF
Free electronics lessons, practice and worksheets at talentjr.in/electronics-for-kids