← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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