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