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