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