← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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