← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

Electronics lesson 22: Input and output pins · Set 208 · 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 of these is an input? (a) a small display (b) a speaker (c) a light sensor (d) an LED
  2. 2.📶 On a 5 V board, a pin set HIGH gives about … (a) 5 V (b) 50 V (c) 230 V (d) 0 V
  3. 3.🔍 Which is the odd one out? (a) a temperature sensor (b) a keypad (c) a turning knob (d) an LED
  4. 4.💡 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 7 LOW
    set pin 7 HIGH
    Is the LED ON or OFF at the end?
    (a) ON (b) OFF
  5. 5.💡 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 HIGH
    Is the LED ON or OFF at the end?
    (a) ON (b) OFF
  6. 6.True or false: “how loud a sound is” is an analog signal. (a) False (b) True
  7. 7.Which of these is an input? (a) a sound sensor (b) an LED (c) a small display (d) a buzzer
  8. 8.🔍 Which is the odd one out? (a) a speaker (b) a motor (c) a servo motor (d) a push button
  9. 9.🔍 Which is the odd one out? (a) a water pump (b) an LED (c) a light sensor (d) a servo motor
  10. 10.🔌 Is a sound sensor an input or an output for a microcontroller? (a) output (b) input
  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 LOW
    set pin 8 LOW
    set pin 8 LOW
    set pin 8 LOW
    Is the LED ON or OFF at the end?
    (a) OFF (b) ON
  12. 12.📶 A pin that reads a push button is set as … (a) a resistor (b) a battery (c) an output (d) an input
  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 7 HIGH
    set pin 7 HIGH
    set pin 7 LOW
    set pin 7 LOW
    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 7 LOW
    set pin 8 LOW
    set pin 8 LOW
    Is the LED ON or OFF at the end?
    (a) OFF (b) ON
  15. 15.💡 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 HIGH
    set pin 8 HIGH
    Is the LED ON or OFF at the end?
    (a) ON (b) OFF
  16. 16.🔍 Which is the odd one out? (a) a water pump (b) a sound sensor (c) an LED (d) a small display
  17. 17.🔌 Is a small display 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.🔌 Is an LED an input or an output for a microcontroller? (a) output (b) input
  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 7 HIGH
    set pin 8 LOW
    set pin 7 LOW
    Is the LED ON or OFF at the end?
    (a) OFF (b) ON
  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 7 LOW
    set pin 7 HIGH
    Is the LED ON or OFF at the end?
    (a) OFF (b) ON
  22. 22.📶 Digital or analog: many values in a range? (a) digital (b) analog
  23. 23.💡 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
    set pin 8 LOW
    Is the LED ON or OFF at the end?
    (a) ON (b) OFF
  24. 24.💡 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 7 LOW
    Is the LED ON or OFF at the end?
    (a) ON (b) OFF
  25. 25.Which of these is an output? (a) a turning knob (b) a light sensor (c) a water pump (d) a temperature sensor
  26. 26.🔍 Which is the odd one out? (a) a water pump (b) a motor (c) a small display (d) a turning knob
  27. 27.💡 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) OFF (b) ON
  28. 28.💡 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 HIGH
    set pin 8 HIGH
    Is the LED ON or OFF at the end?
    (a) OFF (b) ON
  29. 29.🔌 Is a servo motor an input or an output for a microcontroller? (a) input (b) output
  30. 30.💡 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 8 HIGH
    set pin 8 LOW
    Is the LED ON or OFF at the end?
    (a) ON (b) OFF
  31. 31.True or false: “a button: pressed or not” is a digital signal. (a) True (b) False
  32. 32.Which of these is an output? (a) a keypad (b) a sound sensor (c) a push button (d) a small display
  33. 33.Which of these is an output? (a) a light sensor (b) a keypad (c) a buzzer (d) a turning knob
  34. 34.🔌 Is a light sensor an input or an output for a microcontroller? (a) input (b) output
  35. 35.True or false: “how bright a room is” is an analog signal. (a) True (b) False
  36. 36.True or false: “many values in a range” is an analog signal. (a) False (b) True
  37. 37.🔍 Which is the odd one out? (a) a light sensor (b) a keypad (c) a temperature sensor (d) a speaker
  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 HIGH
    set pin 7 LOW
    set pin 7 LOW
    Is the LED ON or OFF at the end?
    (a) ON (b) OFF
  39. 39.🔍 Which is the odd one out? (a) a motor (b) an LED (c) a water pump (d) a keypad
  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
    Is the LED ON or OFF at the end?
    (a) OFF (b) ON

Answer key

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

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