← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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