← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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