← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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