← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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