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