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