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