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