← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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