← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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