← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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