← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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