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