← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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