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