← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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