← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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