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