← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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