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