← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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