← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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