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