← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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