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