← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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