← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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