← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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