← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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