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