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