Browse papers
A

Section A: Long Answer Questions

Attempt any TWO questions.

3 questions·10 marks each
1long10 marks

Explain dependency injection and the IoC container in ASP.NET Core. How is a service registered and consumed? Give an example.

dependency-injection
2long10 marks

Explain the ASP.NET Core request processing pipeline and middleware. Write a custom middleware component.

middlewarepipeline
3long10 marks

What is URL routing in ASP.NET Core? Explain conventional routing and attribute routing with examples.

routing
B

Section B: Short Answer Questions

Attempt any EIGHT questions.

9 questions·5 marks each
4short5 marks

Explain the difference between TempData, ViewData and ViewBag.

state-management
5short5 marks

What is LINQ? Write a LINQ query to filter a list of integers.

linqcsharp
6short5 marks

Explain the lifecycle of a request in ASP.NET Core MVC.

pipeline
7short5 marks

What is the difference between AddSingleton, AddScoped and AddTransient?

dependency-injection
8short5 marks

Explain garbage collection in the .NET framework.

dotnet
9short5 marks

What is a partial view? When is it used?

razorviews
10short5 marks

Explain the difference between authentication and authorization in ASP.NET Core.

security
11short5 marks

What is asynchronous programming in C#? Explain async and await.

csharpasync
12short5 marks

Explain the use of migrations in Entity Framework Core.

entity-framework