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