← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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