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