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