← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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