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