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