← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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