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