← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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