← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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