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