← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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