← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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