← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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