← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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