← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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