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