← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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