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