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