Questions
- Which of the following is not a framework service?
a. IConfiguration
b. IApplicationBuilder
c. IWeatherService
d. IWebHostEnvironment
Answer: c
- True or false: DI is one of the mechanisms to achieve IoC.
a. True
b. False
Answer: a
- True or false: An injected service can depend on a service that has a shorter life span than its own.
a. True
b. False
Answer: b
- Which of the following is not a valid lifetime scope of ASP.NET Core 6 IoC container?
a. Scoped
b. Singleton
c. Transient
d. Dynamic
Answer: d