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.
A.a registration where one instance is created per client request and reused within that request
B.the framework-provided inversion-of-control system that creates and supplies objects a class declares it needs
C.a registration where a single instance is created once and shared for the entire application lifetime
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
A.Singleton lifetime
B.Scoped lifetime
C.Built-in DI container
D.Transient lifetime
Answer + AI explanation with Pro
3. Which statement is correct?
Junior
A.Built-in DI container — the framework-provided inversion-of-control system that creates and supplies objects a class declares it needs
B.Built-in DI container — a registration where a single instance is created once and shared for the entire application lifetime
C.Built-in DI container — the preferred technique of receiving required services as parameters of a type's constructor
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
A.the framework-provided inversion-of-control system that creates and supplies objects a class declares it needs
B.a registration where a single instance is created once and shared for the entire application lifetime
C.a registration where one instance is created per client request and reused within that request
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
A.Transient lifetime
B.Constructor injection
C.Singleton lifetime
D.Scoped lifetime
Answer + AI explanation with Pro
6. Which statement is correct?
Junior
A.Constructor injection — a registration where a single instance is created once and shared for the entire application lifetime
B.Constructor injection — the preferred technique of receiving required services as parameters of a type's constructor
C.Constructor injection — a registration where a new instance of the service is created every time it is requested
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
A.a registration where a new instance of the service is created every time it is requested
B.the framework-provided inversion-of-control system that creates and supplies objects a class declares it needs
C.a registration where one instance is created per client request and reused within that request
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
A.Transient lifetime
B.Scoped lifetime
C.Built-in DI container
D.Singleton lifetime
Answer + AI explanation with Pro
9. Which statement is correct?
Mid
A.Transient lifetime — a registration where a single instance is created once and shared for the entire application lifetime
B.Transient lifetime — a registration where one instance is created per client request and reused within that request
C.Transient lifetime — the framework-provided inversion-of-control system that creates and supplies objects a class declares it needs
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
A.a registration where a single instance is created once and shared for the entire application lifetime
B.the preferred technique of receiving required services as parameters of a type's constructor
C.a registration where one instance is created per client request and reused within that request
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
A.Built-in DI container
B.Scoped lifetime
C.Constructor injection
D.Transient lifetime
Answer + AI explanation with Pro
12. Which statement is correct?
Mid
A.Scoped lifetime — a registration where a single instance is created once and shared for the entire application lifetime
B.Scoped lifetime — a registration where one instance is created per client request and reused within that request
C.Scoped lifetime — the preferred technique of receiving required services as parameters of a type's constructor
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
A.a registration where a new instance of the service is created every time it is requested
B.the preferred technique of receiving required services as parameters of a type's constructor
C.the framework-provided inversion-of-control system that creates and supplies objects a class declares it needs
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
A.Constructor injection
B.Built-in DI container
C.Singleton lifetime
D.Scoped lifetime
Answer + AI explanation with Pro
15. Which statement is correct?
Mid
A.Singleton lifetime — a registration where a new instance of the service is created every time it is requested
B.Singleton lifetime — the framework-provided inversion-of-control system that creates and supplies objects a class declares it needs
C.Singleton lifetime — the preferred technique of receiving required services as parameters of a type's constructor
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.