← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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