← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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