← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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