← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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