← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

Electronics lesson 22: Input and output pins · Set 96 · 40 questions
TalentJR

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

Answer key

  1. a temperature sensor
  2. output
  3. ON
  4. OFF
  5. False
  6. OFF
  7. a water pump
  8. OFF
  9. input
  10. output
  11. a sound sensor
  12. a turning knob
  13. 0 V
  14. digital
  15. digital
  16. OFF
  17. input
  18. OFF
  19. output
  20. ON
  21. analog
  22. two
  23. a sound sensor
  24. a motion sensor
  25. OFF
  26. OFF
  27. OFF
  28. OFF
  29. True
  30. analog
  31. ON
  32. False
  33. an input
  34. a light sensor
  35. OFF
  36. ON
  37. True
  38. digital
  39. output
  40. OFF

Free electronics lessons, practice and worksheets at talentjr.in/electronics-for-kids