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