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