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