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