Unit 4: Backend Development Using ASP.NET Core - Subjective Questions

CSE253 — .Net Programming • Practice Questions with Detailed Answers

20 questions

1

Define ASP.NET Core and explain the major features that make it suitable for building modern web applications.

2

Explain the MVC architecture in ASP.NET Core and describe how the Model, View, and Controller communicate with one another.

3

Describe the request-processing pipeline in an ASP.NET Core MVC application. How are requests and responses handled?

4

What are controllers and actions in ASP.NET Core MVC? Explain their responsibilities with a suitable example.

5

Explain routing in ASP.NET Core MVC and distinguish between conventional routing and attribute routing.

6

Explain the Razor view engine and describe the basic syntax used to embed server-side code in an ASP.NET Core view.

7

Describe layouts, sections, and the ViewStart file in ASP.NET Core MVC. How do they help organize views?

8

Compare ViewBag, ViewData, and TempData in ASP.NET Core MVC. Mention their syntax, lifetime, and appropriate uses.

9

Explain the role of models and view models in ASP.NET Core MVC. Why should a view model sometimes be preferred over a domain model?

10

Explain session and state management in ASP.NET Core. Describe how session state is configured and used.

11

Describe the ASP.NET Core form-processing workflow from displaying a form to saving valid data.

12

What is model binding in ASP.NET Core MVC? Explain the sources from which values are bound and discuss its benefits.

13

Explain tag helpers in ASP.NET Core. Describe how form, input, label, validation-message, and anchor tag helpers are used.

14

Explain server-side form validation in ASP.NET Core. Include data annotations, ModelState, and custom validation in your answer.

15

Explain client-side form validation in ASP.NET Core and compare it with server-side validation.

16

Compare different techniques for passing data from a controller to a view in ASP.NET Core MVC. Which technique is generally preferred and why?

17

Explain how an HTTP GET action and an HTTP POST action work together to implement a create operation in ASP.NET Core MVC.

18

Describe the complete lifecycle of a submitted ASP.NET Core MVC form, including model binding, validation, action execution, and response generation.

19

Distinguish between returning a View, RedirectToAction, Json, and HTTP status results from an ASP.NET Core controller action.

20

Explain how layouts and sections can be used to include page-specific JavaScript and CSS in an ASP.NET Core MVC application.