← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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