← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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