← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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