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