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