← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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