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