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