← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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