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