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