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