← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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