← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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