← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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