← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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