Dependency Injection interview questions

15 Dependency Injection questions from the .NET MAUI 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 container?

Junior
  1. A.the service registry exposed on the builder Services collection for wiring up dependencies
  2. B.a registration that yields a fresh instance each time the dependency is requested
  3. C.a registration that shares one instance for the entire lifetime of the app
  4. D.adding a type to the container with singleton, scoped or transient lifetime so it can be resolved later

Answer + AI explanation with Pro

2. Which term means: "the service registry exposed on the builder Services collection for wiring up dependencies"?

Junior
  1. A.Built-in container
  2. B.Constructor injection
  3. C.Service registration
  4. D.Transient lifetime

Answer + AI explanation with Pro

3. Which statement is correct?

Junior
  1. A.Built-in container — the service registry exposed on the builder Services collection for wiring up dependencies
  2. B.Built-in container — adding a type to the container with singleton, scoped or transient lifetime so it can be resolved later
  3. C.Built-in container — supplying a class its dependencies automatically through its parameters when the container creates it
  4. D.Built-in container — a registration that yields a fresh instance each time the dependency is requested

Answer + AI explanation with Pro

4. What is Service registration?

Mid
  1. A.supplying a class its dependencies automatically through its parameters when the container creates it
  2. B.the service registry exposed on the builder Services collection for wiring up dependencies
  3. C.adding a type to the container with singleton, scoped or transient lifetime so it can be resolved later
  4. D.a registration that yields a fresh instance each time the dependency is requested

Answer + AI explanation with Pro

5. Which term means: "adding a type to the container with singleton, scoped or transient lifetime so it can be resolved later"?

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

Answer + AI explanation with Pro

6. Which statement is correct?

Mid
  1. A.Service registration — adding a type to the container with singleton, scoped or transient lifetime so it can be resolved later
  2. B.Service registration — a registration that yields a fresh instance each time the dependency is requested
  3. C.Service registration — a registration that shares one instance for the entire lifetime of the app
  4. D.Service registration — the service registry exposed on the builder Services collection for wiring up dependencies

Answer + AI explanation with Pro

7. What is Constructor injection?

Mid
  1. A.the service registry exposed on the builder Services collection for wiring up dependencies
  2. B.a registration that yields a fresh instance each time the dependency is requested
  3. C.a registration that shares one instance for the entire lifetime of the app
  4. D.supplying a class its dependencies automatically through its parameters when the container creates it

Answer + AI explanation with Pro

8. Which term means: "supplying a class its dependencies automatically through its parameters when the container creates it"?

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

Answer + AI explanation with Pro

9. Which statement is correct?

Mid
  1. A.Constructor injection — a registration that yields a fresh instance each time the dependency is requested
  2. B.Constructor injection — a registration that shares one instance for the entire lifetime of the app
  3. C.Constructor injection — adding a type to the container with singleton, scoped or transient lifetime so it can be resolved later
  4. D.Constructor injection — supplying a class its dependencies automatically through its parameters when the container creates it

Answer + AI explanation with Pro

10. What is Transient lifetime?

Mid
  1. A.adding a type to the container with singleton, scoped or transient lifetime so it can be resolved later
  2. B.a registration that yields a fresh instance each time the dependency is requested
  3. C.the service registry exposed on the builder Services collection for wiring up dependencies
  4. D.supplying a class its dependencies automatically through its parameters when the container creates it

Answer + AI explanation with Pro

11. Which term means: "a registration that yields a fresh instance each time the dependency is requested"?

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

Answer + AI explanation with Pro

12. Which statement is correct?

Mid
  1. A.Transient lifetime — supplying a class its dependencies automatically through its parameters when the container creates it
  2. B.Transient lifetime — adding a type to the container with singleton, scoped or transient lifetime so it can be resolved later
  3. C.Transient lifetime — a registration that shares one instance for the entire lifetime of the app
  4. D.Transient lifetime — a registration that yields a fresh instance each time the dependency is requested

Answer + AI explanation with Pro

13. What is Singleton lifetime?

Mid
  1. A.a registration that yields a fresh instance each time the dependency is requested
  2. B.a registration that shares one instance for the entire lifetime of the app
  3. C.the service registry exposed on the builder Services collection for wiring up dependencies
  4. D.supplying a class its dependencies automatically through its parameters when the container creates it

Answer + AI explanation with Pro

14. Which term means: "a registration that shares one instance for the entire lifetime of the app"?

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

Answer + AI explanation with Pro

15. Which statement is correct?

Mid
  1. A.Singleton lifetime — a registration that shares one instance for the entire lifetime of the app
  2. B.Singleton lifetime — a registration that yields a fresh instance each time the dependency is requested
  3. C.Singleton lifetime — supplying a class its dependencies automatically through its parameters when the container creates it
  4. D.Singleton lifetime — the service registry exposed on the builder Services collection for wiring up dependencies

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