← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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