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