← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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