← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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