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