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