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