← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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