← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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