← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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