← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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