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