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