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