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