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