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