← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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