← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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