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