← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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