← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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