← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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