← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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