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