← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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