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