← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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