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