← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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