← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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