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.Which of these is an input? (a) a motor (b) a servo motor (c) a light sensor (d) a water pump
-
2.💡 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) ON (b) OFF - 3.📶 A pin that reads a push button is set as … (a) a battery (b) an output (c) a resistor (d) an input
-
4.💡 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 HIGH
set pin 8 HIGH
Is the LED ON or OFF at the end? (a) OFF (b) ON -
5.💡 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
set pin 8 LOW
Is the LED ON or OFF at the end? (a) ON (b) OFF - 6.Which of these is an input? (a) a small display (b) a servo motor (c) a turning knob (d) a water pump
- 7.📶 On a 5 V board, a pin set HIGH gives about … (a) 230 V (b) 50 V (c) 0 V (d) 5 V
- 8.🔍 Which is the odd one out? (a) a motor (b) a push button (c) a buzzer (d) a small display
- 9.🔌 Is a temperature sensor an input or an output for a microcontroller? (a) input (b) output
-
10.💡 An LED (with its resistor) is on pin 7. All pins start LOW. The program runs once:
set pin 8 HIGH
set pin 7 LOW
set pin 8 LOW
set pin 7 LOW
Is the LED ON or OFF at the end? (a) OFF (b) ON - 11.True or false: “a knob turned part way” is an analog signal. (a) False (b) True
- 12.📶 How many states can a digital pin have? (a) a thousand (b) two (c) one (d) ten
- 13.🔌 Is a push button an input or an output for a microcontroller? (a) input (b) output
-
14.💡 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 LOW
set pin 7 HIGH
Is the LED ON or OFF at the end? (a) OFF (b) ON -
15.💡 An LED (with its resistor) is on pin 7. All pins start LOW. The program runs once:
set pin 8 HIGH
set pin 7 LOW
set pin 7 LOW
set pin 8 HIGH
set pin 8 HIGH
Is the LED ON or OFF at the end? (a) ON (b) OFF - 16.Which of these is an output? (a) a motor (b) a light sensor (c) a turning knob (d) a motion sensor
-
17.💡 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 HIGH
set pin 8 HIGH
set pin 8 LOW
Is the LED ON or OFF at the end? (a) ON (b) OFF - 18.Which of these is an output? (a) a turning knob (b) a light sensor (c) a keypad (d) an LED
- 19.🔌 Is a light sensor an input or an output for a microcontroller? (a) output (b) input
- 20.🔍 Which is the odd one out? (a) a push button (b) a water pump (c) a light sensor (d) a sound sensor
- 21.📶 Digital or analog: a button: pressed or not? (a) analog (b) digital
- 22.🔌 Is a servo motor an input or an output for a microcontroller? (a) input (b) output
- 23.🔍 Which is the odd one out? (a) a keypad (b) a speaker (c) an LED (d) a small display
- 24.📶 Digital or analog: a tilt switch: on or off? (a) analog (b) digital
-
25.💡 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 - 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
Is the LED ON or OFF at the end? (a) OFF (b) ON - 28.True or false: “a button: pressed or not” is a digital signal. (a) True (b) False
-
29.💡 An LED (with its resistor) is on pin 8. All pins start LOW. The program runs once:
set pin 7 LOW
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) ON (b) OFF - 30.True or false: “a button: pressed or not” is an analog signal. (a) False (b) True
-
31.💡 An LED (with its resistor) is on pin 7. All pins start LOW. The program runs once:
set pin 7 LOW
set pin 8 LOW
set pin 8 HIGH
set pin 8 HIGH
set pin 8 HIGH
Is the LED ON or OFF at the end? (a) ON (b) OFF - 32.Which of these is an input? (a) a servo motor (b) a temperature sensor (c) a motor (d) a small display
-
33.💡 An LED (with its resistor) is on pin 7. All pins start LOW. The program runs once:
set pin 7 HIGH
set pin 8 LOW
set pin 8 LOW
set pin 8 LOW
Is the LED ON or OFF at the end? (a) ON (b) OFF - 34.🔌 Is a buzzer an input or an output for a microcontroller? (a) output (b) input
-
35.💡 An LED (with its resistor) is on pin 7. All pins start LOW. The program runs once:
set pin 7 HIGH
set pin 7 LOW
set pin 8 HIGH
Is the LED ON or OFF at the end? (a) ON (b) OFF - 36.Which of these is an input? (a) a water pump (b) a buzzer (c) a servo motor (d) a push button
- 37.True or false: “many values in a range” is a digital signal. (a) True (b) False
- 38.Which of these is an input? (a) a water pump (b) an LED (c) a buzzer (d) a sound sensor
-
39.💡 An LED (with its resistor) is on pin 8. All pins start LOW. The program runs once:
set pin 8 LOW
set pin 7 LOW
set pin 8 LOW
set pin 7 HIGH
set pin 7 HIGH
Is the LED ON or OFF at the end? (a) OFF (b) ON - 40.📶 Digital or analog: the room temperature? (a) digital (b) analog
Answer key
- a light sensor
- OFF
- an input
- ON
- OFF
- a turning knob
- 5 V
- a push button
- input
- OFF
- True
- two
- input
- ON
- OFF
- a motor
- OFF
- an LED
- input
- a water pump
- digital
- output
- a keypad
- digital
- ON
- output
- OFF
- True
- OFF
- False
- OFF
- a temperature sensor
- ON
- output
- OFF
- a push button
- False
- a sound sensor
- OFF
- analog
Free electronics lessons, practice and worksheets at talentjr.in/electronics-for-kids