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