← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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