← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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