← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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