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