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