← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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