← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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