← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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