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