← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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