← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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