← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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