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