← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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