← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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