← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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