← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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