← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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