← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

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