← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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