← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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