← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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