← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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