← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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