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