← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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