← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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