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