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