← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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