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