← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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