← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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