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