← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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