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