← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

Electronics lesson 22: Input and output pins · Set 341 · 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 7. All pins start LOW. The program runs once:
    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
  2. 2.📶 Digital or analog: how loud a sound is? (a) analog (b) digital
  3. 3.Which of these is an input? (a) a push button (b) a speaker (c) a buzzer (d) a water pump
  4. 4.Which of these is an output? (a) a temperature sensor (b) an LED (c) a turning knob (d) a sound sensor
  5. 5.💡 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) ON (b) OFF
  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 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) ON (b) OFF
  8. 8.🔌 Is a sound sensor an input or an output for a microcontroller? (a) input (b) output
  9. 9.🔍 Which is the odd one out? (a) an LED (b) a keypad (c) a push button (d) a light sensor
  10. 10.True or false: “HIGH or LOW only” is an analog signal. (a) False (b) True
  11. 11.🔌 Is a push button an input or an output for a microcontroller? (a) input (b) output
  12. 12.💡 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 7 LOW
    set pin 7 HIGH
    set pin 7 LOW
    Is the LED ON or OFF at the end?
    (a) OFF (b) ON
  13. 13.📶 Digital or analog: how bright a room is? (a) analog (b) digital
  14. 14.🔍 Which is the odd one out? (a) an LED (b) a small display (c) a servo motor (d) a sound sensor
  15. 15.💡 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) OFF (b) ON
  16. 16.Which of these is an input? (a) a buzzer (b) an LED (c) a small display (d) a light sensor
  17. 17.Which of these is an input? (a) a small display (b) a buzzer (c) a keypad (d) an LED
  18. 18.🔌 Is a servo motor an input or an output for a microcontroller? (a) input (b) output
  19. 19.📶 Digital or analog: many values in a range? (a) analog (b) digital
  20. 20.📶 How many states can a digital pin have? (a) one (b) two (c) a thousand (d) ten
  21. 21.💡 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
    Is the LED ON or OFF at the end?
    (a) ON (b) OFF
  22. 22.🔍 Which is the odd one out? (a) a sound sensor (b) a servo motor (c) a motion sensor (d) a push button
  23. 23.Which of these is an output? (a) a keypad (b) a sound sensor (c) a motor (d) a light sensor
  24. 24.🔌 Is a speaker an input or an output for a microcontroller? (a) input (b) output
  25. 25.🔌 Is a small display an input or an output for a microcontroller? (a) output (b) input
  26. 26.True or false: “how bright a room is” is an analog signal. (a) False (b) True
  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 8 LOW
    set pin 7 LOW
    set pin 8 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 7 HIGH
    set pin 7 HIGH
    set pin 8 LOW
    Is the LED ON or OFF at the end?
    (a) ON (b) OFF
  29. 29.🔌 Is a turning knob an input or an output for a microcontroller? (a) input (b) output
  30. 30.💡 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 8 LOW
    Is the LED ON or OFF at the end?
    (a) ON (b) OFF
  31. 31.📶 Digital or analog: a door: open or shut? (a) analog (b) digital
  32. 32.True or false: “a button: pressed or not” is a digital signal. (a) True (b) False
  33. 33.💡 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) OFF (b) ON
  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 7 HIGH
    set pin 8 LOW
    set pin 8 HIGH
    set pin 7 LOW
    Is the LED ON or OFF at the end?
    (a) ON (b) OFF
  35. 35.📶 Digital or analog: the room temperature? (a) digital (b) analog
  36. 36.💡 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 7 LOW
    set pin 8 LOW
    set pin 7 LOW
    Is the LED ON or OFF at the end?
    (a) ON (b) OFF
  37. 37.🔌 Is a keypad an input or an output for a microcontroller? (a) input (b) output
  38. 38.🔍 Which is the odd one out? (a) a speaker (b) a sound sensor (c) a turning knob (d) a push button
  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 7 HIGH
    Is the LED ON or OFF at the end?
    (a) OFF (b) ON
  40. 40.🔌 Is a motion sensor an input or an output for a microcontroller? (a) output (b) input

Answer key

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

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