← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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