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