← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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