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