Vidyalelo
C# Programming · all questions

ASP.NET and Web Development with C Sharp
practice.

Practice every MCQ with options. Use Show answers when you want the correct option and solution.

68

Questions

3/4

Page

Pick an option on a question to see the right answer and solution.

In ASP.NET Web Forms, what is the purpose of the Page_Load event handler method?

Select an option to see the answer and solution.

What is the purpose of the AntiForgeryToken in ASP.NET MVC?

Select an option to see the answer and solution.

Which of the following is a valid routing constraint in ASP.NET MVC?

Select an option to see the answer and solution.

What is the purpose of the HttpGet attribute in ASP.NET MVC controller actions?

Select an option to see the answer and solution.

Which ASP.NET component is used to validate user input on the client-side?

Select an option to see the answer and solution.

What is the purpose of the Route attribute in ASP.NET Core?

Select an option to see the answer and solution.

Which of the following is NOT a valid HTTP method used in RESTful services?

Select an option to see the answer and solution.

In ASP.NET MVC, what is the purpose of the RedirectToAction method?

Select an option to see the answer and solution.

What does MVC stand for in ASP.NET MVC?

Select an option to see the answer and solution.

Which of the following is NOT a valid HTTP status code?

Select an option to see the answer and solution.

What is the purpose of the [Authorize] attribute in ASP.NET MVC?

Select an option to see the answer and solution.

What is the purpose of the DataAnnotations namespace in ASP.NET MVC?

Select an option to see the answer and solution.

In ASP.NET Web Forms, what is the purpose of the UpdatePanel control?

Select an option to see the answer and solution.

Which of the following is NOT a valid HTTP status code in ASP.NET Web API?

Select an option to see the answer and solution.

What is the purpose of the TempData property in ASP.NET MVC?

Select an option to see the answer and solution.

In ASP.NET Core, what is the purpose of the appsettings.json file?

Select an option to see the answer and solution.

Which of the following is NOT a valid Razor syntax in ASP.NET MVC?

Select an option to see the answer and solution.

What is the purpose of the AuthorizeAttribute in ASP.NET Web API?

Select an option to see the answer and solution.

In ASP.NET MVC, what is the purpose of the ViewResultBase class?

Select an option to see the answer and solution.

What is the purpose of the <script> tag in HTML?

Select an option to see the answer and solution.