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