← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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