← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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