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