TechOnStudy • LEARN | PRACTICE | SUCCEED

Master Software Engineering, Practice Real Mock Exams & Succeed

The premier technical examination & developer learning portal. Attempt standardized, timed mock exams, test your skills with daily coding MCQs, read verified engineering tutorials, and earn tamper-proof digital certificates.

15+
Active Certifications
500+
Practice MCQs
100%
Free Access
Instant
Digital Certificates
Umair
Umair Question • ASP.NET Core
Approved & Live • Nov 20, 2026
+50 pts
What is the default lifetime of AddScoped in ASP.NET Core?

In ASP.NET Core Dependency Injection, services registered with AddScoped have which of the following lifetimes?

A. A new instance is created every time it is requested
B. A single instance is created per HTTP client request/connection
C. A single instance is created when the application starts and shared throughout
D. An instance is cached for 60 seconds
Correct Answer: Option B

Scoped lifetime services are created once per client request (connection) in ASP.NET Core.

Admin Approved
Vipin Kumar Mittal Nov 28, 06:24

good question

Please sign in to participate in discussions.
Umair
Umair Article • C# & .NET Core
Approved & Live • Nov 20, 2026
+100 pts
Mastering Dependency Injection in .NET Core

Dependency injection is a key technique for achieving Inversion of Control between classes and their dependencies in modern ASP.NET Core applications.

#csharp #dotnet #architecture
Admin Approved
No comments yet. Be the first to share your thoughts!
Please sign in to participate in discussions.