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