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