← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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