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