← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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