← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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