← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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