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