How Well Do You Know Dependency Injection?

10 Questions | Total Attempts: 369

SettingsSettingsSettings
Please wait...
How Well Do You Know Dependency Injection?

Dependency Injection is a technique in software engineering in which the dependencies of an object is supplied by the other. This standard test would help you grasp the basics about dependency injection.


Questions and Answers
  • 1. 
    The fundamental requirement of dependency injection is 
    • A. 

      passing service to the client

    • B. 

      Allowing client to find service

    • C. 

      Allowing client to build service

    • D. 

      Giving the client part service

  • 2. 
    In dependency injection using values within new and static methods is
    • A. 

      Important

    • B. 

      Prohibited

    • C. 

      Allowed

    • D. 

      Required

  • 3. 
     Dependency injection can described as a form of
    • A. 

      Automated control

    • B. 

      Inversion control

    • C. 

      Total control

    • D. 

      Direct control

  • 4. 
     Dependency Injection supports which of these principles?
    • A. 

      Dependency rare principle

    • B. 

      Dependency new principle

    • C. 

      Dependency total principle

    • D. 

      Dependency inversion principle

  • 5. 
    All of the following are means upon which a client accepts a dependency injection except  
    • A. 

      Constructor-based injection

    • B. 

      Client-based injection

    • C. 

      Setter-based injection

    • D. 

      Interface-based injection

  • 6. 
    The basic unit of dependency injection is 
    • A. 

      Injection

    • B. 

      Codes

    • C. 

      Variables

    • D. 

      Service

  • 7. 
    Dependency Injection usually involves how many roles?
    • A. 

      2

    • B. 

      3

    • C. 

      4

    • D. 

      5

  • 8. 
    Concerning  dependency injection which of these is odd?
    • A. 

      Service object

    • B. 

      Client object

    • C. 

      Client code

    • D. 

      Injector

  • 9. 
    An object that can be used in decency injection is regarded as
    • A. 

      Injector

    • B. 

      Client

    • C. 

      Code

    • D. 

      Service

  • 10. 
    An object that use other objects in dependency injection is 
    • A. 

      Client

    • B. 

      Service

    • C. 

      Injector

    • D. 

      Command

Back to Top Back to top