Which of the following are true about Dependency Injection?

Back to Questions
A)

DI is used for decoupling objects.

B)

DI supports dependency inversion principle.

C)

Application is easily testable using DI.

D)

Dependencies should be in injected in a particular order.

 

Author Explanation :

Benefits of DI is<br/>
1.DI is used for decoupling objects<br/>
2.DI supports dependency inversion principle. <br/>
3.Application is easily testable using DI.  etc.

Answers Posted

PostedBy By: vamshi, at 11:42 AM on 10-April-2019

Answer Posted: A B C

Explanation: Its technique to separate the creation of dependencies on class under consideration. It decouples objects from dependent class. Its can be more testable

Result: Correct

PostedBy By: vamshi, at 11:40 AM on 10-April-2019

Answer Posted: A C

Explanation: Its technique to separate the creation of dependencies on class under consideration. It decouples objects from dependent class. Its can be more testable

Result: Wrong Answer

PostedBy By: Srinivasan Baskaran, at 02:06 AM on 09-April-2019

Answer Posted: A B C

Explanation: The concept of DI focuses only on removing the tight coupling in the programming code which will directly helpful in testing the individual component when your parent method has to depend on multiple other methods as the dependency.

Result: Correct

PostedBy By: sunkara ganesh, at 09:48 AM on 08-April-2019

Answer Posted: A

Explanation: DI used for developing web application as much as decoupling

Result: Wrong Answer

Back to Questions

© Copyright 1997 - 2019 | www.bestdotnettraining.com | www.deccansoft.com | All Rights Reserved.
 
Bestdotnet google plus
Enquiry Now