← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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