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