← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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