← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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