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