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