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