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