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