← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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