← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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