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