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