← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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