← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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