← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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