← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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