Dependency Injection Trivia Quiz

10 Questions | Total Attempts: 187

SettingsSettingsSettings
Dependency Injection Trivia Quiz - Quiz

Dependency Injection in software engineering is a technique whereby an object supplies the dependencies of another object. It supports the dependency inversion principle, and the client only needs to know about the intrinsic interface of the services because it defines how the client may use the services. Take this quiz to answer and learn more about Dependency Injection.


Questions and Answers
  • 1. 
    _____ is an object that can be used
    • A. 

      A Dependency 

    • B. 

      A Stationary

    • C. 

      An Injection

    • D. 

      A Constructor

  • 2. 
    _____ is the passing of a dependency to a dependent object that would use it
    • A. 

      An Injection

    • B. 

      A Torsion

    • C. 

      A Connection

    • D. 

      A Constrictor

  • 3. 
    Dependency Injection is one form of the broader technique of _____
    • A. 

      Inversion of Control

    • B. 

      Intersection services

    • C. 

      Connection services

    • D. 

      Construction Control

  • 4. 
    _____ is one of the common means for a client to accept a dependency injection
    • A. 

      Setter-based injection

    • B. 

      Settee-based injection

    • C. 

      Set-based injecton

    • D. 

      Seter-based Injector

  • 5. 
    _____ is one of the common means for a client to accept a dependency injection
    • A. 

      Interface-based injection

    • B. 

      Interphase-based Injection

    • C. 

      Phase-based injection

    • D. 

      Face-based Injection

  • 6. 
    _____ is one of the common means for a client to accept a dependency injection
    • A. 

      Constructor-based injection

    • B. 

      Constrictor-based injection

    • C. 

      Construction-based injection

    • D. 

      Construction-based Injector

  • 7. 
    _____ is the dependency injection role for objects to be used
    • A. 

      Service

    • B. 

      Client

    • C. 

      Intrinsic Interface

    • D. 

      Injector

  • 8. 
    _____ is the object that is depending on the service
    • A. 

      Client

    • B. 

      Service

    • C. 

      Intrinsic Interface

    • D. 

      Injector

  • 9. 
    _____ defines how the client may use the services
    • A. 

      Intrinsic interface

    • B. 

      Injector

    • C. 

      Service

    • D. 

      Client

  • 10. 
    _____ is responsible for constructing the services and injecting them to the client
    • A. 

      Injector

    • B. 

      Services

    • C. 

      Intrinsic Interface

    • D. 

      Client

Back to Top Back to top