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