← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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