← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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