← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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