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