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