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