← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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