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