← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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