← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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