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