← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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