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