← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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