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