← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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