← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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