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