← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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