← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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