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