← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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