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