← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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