← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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