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