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