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.
A.the service registry exposed on the builder Services collection for wiring up dependencies
B.a registration that yields a fresh instance each time the dependency is requested
C.a registration that shares one instance for the entire lifetime of the app
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
A.Built-in container
B.Constructor injection
C.Service registration
D.Transient lifetime
Answer + AI explanation with Pro
3. Which statement is correct?
Junior
A.Built-in container — the service registry exposed on the builder Services collection for wiring up dependencies
B.Built-in container — adding a type to the container with singleton, scoped or transient lifetime so it can be resolved later
C.Built-in container — supplying a class its dependencies automatically through its parameters when the container creates it
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
A.supplying a class its dependencies automatically through its parameters when the container creates it
B.the service registry exposed on the builder Services collection for wiring up dependencies
C.adding a type to the container with singleton, scoped or transient lifetime so it can be resolved later
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
A.Singleton lifetime
B.Service registration
C.Constructor injection
D.Built-in container
Answer + AI explanation with Pro
6. Which statement is correct?
Mid
A.Service registration — adding a type to the container with singleton, scoped or transient lifetime so it can be resolved later
B.Service registration — a registration that yields a fresh instance each time the dependency is requested
C.Service registration — a registration that shares one instance for the entire lifetime of the app
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
A.the service registry exposed on the builder Services collection for wiring up dependencies
B.a registration that yields a fresh instance each time the dependency is requested
C.a registration that shares one instance for the entire lifetime of the app
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
A.Constructor injection
B.Singleton lifetime
C.Transient lifetime
D.Built-in container
Answer + AI explanation with Pro
9. Which statement is correct?
Mid
A.Constructor injection — a registration that yields a fresh instance each time the dependency is requested
B.Constructor injection — a registration that shares one instance for the entire lifetime of the app
C.Constructor injection — adding a type to the container with singleton, scoped or transient lifetime so it can be resolved later
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
A.adding a type to the container with singleton, scoped or transient lifetime so it can be resolved later
B.a registration that yields a fresh instance each time the dependency is requested
C.the service registry exposed on the builder Services collection for wiring up dependencies
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
A.Service registration
B.Singleton lifetime
C.Built-in container
D.Transient lifetime
Answer + AI explanation with Pro
12. Which statement is correct?
Mid
A.Transient lifetime — supplying a class its dependencies automatically through its parameters when the container creates it
B.Transient lifetime — adding a type to the container with singleton, scoped or transient lifetime so it can be resolved later
C.Transient lifetime — a registration that shares one instance for the entire lifetime of the app
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
A.a registration that yields a fresh instance each time the dependency is requested
B.a registration that shares one instance for the entire lifetime of the app
C.the service registry exposed on the builder Services collection for wiring up dependencies
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
A.Singleton lifetime
B.Service registration
C.Transient lifetime
D.Built-in container
Answer + AI explanation with Pro
15. Which statement is correct?
Mid
A.Singleton lifetime — a registration that shares one instance for the entire lifetime of the app
B.Singleton lifetime — a registration that yields a fresh instance each time the dependency is requested
C.Singleton lifetime — supplying a class its dependencies automatically through its parameters when the container creates it
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.