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