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