← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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