← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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