Unit 3: Backend Development Using Asp.Net - Subjective Questions

INT402 — Modern Web Programming Tools And Techniques • Practice Questions with Detailed Answers

20 questions

1

Describe the standard folder and file structure of an ASP.NET Core MVC project. Explain the purpose of its important folders and configuration files.

2

Explain the steps involved in building and configuring a basic web application using ASP.NET Core MVC.

3

Define the MVC architectural pattern. Explain the responsibilities of the Model, View, and Controller components.

4

Describe Model-View-Controller communication in ASP.NET Core MVC by tracing the complete lifecycle of a request and response.

5

Explain how requests are handled in ASP.NET Core MVC. Discuss the roles of middleware, routing, controllers, actions, and action results.

6

What is the Razor View Engine? Explain important Razor syntax rules with suitable examples.

7

Explain the purpose and use of Layout pages, Sections, and the _ViewStart.cshtml file in ASP.NET Core MVC.

8

Compare the major techniques available for passing data from a controller to a view in ASP.NET Core MVC.

9

Distinguish between ViewBag and ViewData in ASP.NET Core MVC. Mention their similarities, differences, and limitations.

10

Explain TempData in ASP.NET Core MVC. Describe its lifetime and the purpose of the Peek and Keep methods.

11

What is session state in ASP.NET Core? Explain how sessions are configured, accessed, and managed.

12

Compare cookies, sessions, TempData, hidden fields, and query strings as state-management techniques in ASP.NET Core applications.

13

Explain how QueryString values are used in ASP.NET Core MVC. State their benefits, limitations, and security considerations.

14

Describe how forms are created and processed in ASP.NET Core MVC using Form Tag Helpers and Input Tag Helpers.

15

Define model binding in ASP.NET Core MVC. Explain its data sources, operation, and use with simple and complex types.

16

Explain server-side form validation in ASP.NET Core MVC using data-annotation attributes and ModelState.

17

Describe client-side validation in ASP.NET Core MVC. How is it connected with model validation attributes and unobtrusive validation?

18

Compare server-side and client-side form validation. Why are both required in a well-designed ASP.NET Core application?

19

Explain the Post-Redirect-Get pattern. Demonstrate how TempData can be used with it to process a successful form submission.

20

Design the request flow for an ASP.NET Core MVC student-registration form. Include the model, GET and POST actions, Razor form, model binding, validation, and redirection.