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