← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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