← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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