← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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