← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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