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