← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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