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