← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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