Dependency Injection interview questions

15 Dependency Injection questions from the ASP.NET Core bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.

Free to start: the 2-minute IT readiness check — six questions and a result.

Take the free IT readiness check

or take a mock interview set up for this area

1. What is Built-in DI container?

Junior
  1. A.a registration where one instance is created per client request and reused within that request
  2. B.the framework-provided inversion-of-control system that creates and supplies objects a class declares it needs
  3. C.a registration where a single instance is created once and shared for the entire application lifetime
  4. D.the preferred technique of receiving required services as parameters of a type's constructor

Answer + AI explanation with Pro

2. Which term means: "the framework-provided inversion-of-control system that creates and supplies objects a class declares it needs"?

Junior
  1. A.Singleton lifetime
  2. B.Scoped lifetime
  3. C.Built-in DI container
  4. D.Transient lifetime

Answer + AI explanation with Pro

3. Which statement is correct?

Junior
  1. A.Built-in DI container — the framework-provided inversion-of-control system that creates and supplies objects a class declares it needs
  2. B.Built-in DI container — a registration where a single instance is created once and shared for the entire application lifetime
  3. C.Built-in DI container — the preferred technique of receiving required services as parameters of a type's constructor
  4. D.Built-in DI container — a registration where one instance is created per client request and reused within that request

Answer + AI explanation with Pro

4. What is Constructor injection?

Junior
  1. A.the framework-provided inversion-of-control system that creates and supplies objects a class declares it needs
  2. B.a registration where a single instance is created once and shared for the entire application lifetime
  3. C.a registration where one instance is created per client request and reused within that request
  4. D.the preferred technique of receiving required services as parameters of a type's constructor

Answer + AI explanation with Pro

5. Which term means: "the preferred technique of receiving required services as parameters of a type's constructor"?

Junior
  1. A.Transient lifetime
  2. B.Constructor injection
  3. C.Singleton lifetime
  4. D.Scoped lifetime

Answer + AI explanation with Pro

6. Which statement is correct?

Junior
  1. A.Constructor injection — a registration where a single instance is created once and shared for the entire application lifetime
  2. B.Constructor injection — the preferred technique of receiving required services as parameters of a type's constructor
  3. C.Constructor injection — a registration where a new instance of the service is created every time it is requested
  4. D.Constructor injection — the framework-provided inversion-of-control system that creates and supplies objects a class declares it needs

Answer + AI explanation with Pro

7. What is Transient lifetime?

Mid
  1. A.a registration where a new instance of the service is created every time it is requested
  2. B.the framework-provided inversion-of-control system that creates and supplies objects a class declares it needs
  3. C.a registration where one instance is created per client request and reused within that request
  4. D.the preferred technique of receiving required services as parameters of a type's constructor

Answer + AI explanation with Pro

8. Which term means: "a registration where a new instance of the service is created every time it is requested"?

Mid
  1. A.Transient lifetime
  2. B.Scoped lifetime
  3. C.Built-in DI container
  4. D.Singleton lifetime

Answer + AI explanation with Pro

9. Which statement is correct?

Mid
  1. A.Transient lifetime — a registration where a single instance is created once and shared for the entire application lifetime
  2. B.Transient lifetime — a registration where one instance is created per client request and reused within that request
  3. C.Transient lifetime — the framework-provided inversion-of-control system that creates and supplies objects a class declares it needs
  4. D.Transient lifetime — a registration where a new instance of the service is created every time it is requested

Answer + AI explanation with Pro

10. What is Scoped lifetime?

Mid
  1. A.a registration where a single instance is created once and shared for the entire application lifetime
  2. B.the preferred technique of receiving required services as parameters of a type's constructor
  3. C.a registration where one instance is created per client request and reused within that request
  4. D.the framework-provided inversion-of-control system that creates and supplies objects a class declares it needs

Answer + AI explanation with Pro

11. Which term means: "a registration where one instance is created per client request and reused within that request"?

Mid
  1. A.Built-in DI container
  2. B.Scoped lifetime
  3. C.Constructor injection
  4. D.Transient lifetime

Answer + AI explanation with Pro

12. Which statement is correct?

Mid
  1. A.Scoped lifetime — a registration where a single instance is created once and shared for the entire application lifetime
  2. B.Scoped lifetime — a registration where one instance is created per client request and reused within that request
  3. C.Scoped lifetime — the preferred technique of receiving required services as parameters of a type's constructor
  4. D.Scoped lifetime — a registration where a new instance of the service is created every time it is requested

Answer + AI explanation with Pro

13. What is Singleton lifetime?

Mid
  1. A.a registration where a new instance of the service is created every time it is requested
  2. B.the preferred technique of receiving required services as parameters of a type's constructor
  3. C.the framework-provided inversion-of-control system that creates and supplies objects a class declares it needs
  4. D.a registration where a single instance is created once and shared for the entire application lifetime

Answer + AI explanation with Pro

14. Which term means: "a registration where a single instance is created once and shared for the entire application lifetime"?

Mid
  1. A.Constructor injection
  2. B.Built-in DI container
  3. C.Singleton lifetime
  4. D.Scoped lifetime

Answer + AI explanation with Pro

15. Which statement is correct?

Mid
  1. A.Singleton lifetime — a registration where a new instance of the service is created every time it is requested
  2. B.Singleton lifetime — the framework-provided inversion-of-control system that creates and supplies objects a class declares it needs
  3. C.Singleton lifetime — the preferred technique of receiving required services as parameters of a type's constructor
  4. D.Singleton lifetime — a registration where a single instance is created once and shared for the entire application lifetime

Answer + AI explanation with Pro

Free to start

Start with a free readiness check

Sign up free for the 2-minute IT readiness check and a scored result. Answers, explanations and the AI tutor on every Dependency Injection question come with Pro.

Take the free IT readiness check

or take a mock interview set up for this area

24,000+ questions & coding problemsSoftware & IT16,274 questionsGovernment jobs26 examsAptitudenew questions every timeAI practice interviewwith feedback65 topics to practiseMechanical1,149 questionsGATE ME9 papersEngineering Mathematics381 questions2-minute checkfreeDSA Problems1,422Civil1,005 questionsGATE CE9 papersCS Fundamentals1,209 questionsYour scores6 skillsSystem Design25Electrical / EEE1,047 questionsGATE EE9 papersRun your codeC++ · Java · PythonLow-Level Design144Electronics & Comm.975 questionsGATE EC9 papersAI help on every questionFull-Stack6,282Chemical1,005 questionsGATE CH9 papersAI whiteboardsystem designWork abroadEurope · remote · transfersESE ME1 paperGATE practice papers2019–2026ESE CE1 paperDate alertsbefore the last dateESE EE1 paperBehavioural courseHR round practiceESE ET1 paperResume optimizerProSSC JE ME1 paperApplication trackerSSC JE CE1 paperCompany-wise prepSSC JE EE1 paperRole roadmapsRRB JE1 subjectPriced in ₹UPI · cardsISRO SC1 paperGATE CS9 papersIBPS SO IT1 paperUGC NET CS1 paperSSC CGL26 papersIBPS PO26 papersRRB NTPC26 papersSSC CHSL26 papersIBPS Clerk26 papersSBI Clerk26 papersRRB Group D26 papersSSC CPO26 papersSSC GD26 papers