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