← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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