← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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