← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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