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