Developing ASP.NET Core MVC Web Applications Quiz Questions and Answers

How can you comment using Razor Syntax?

Answer :
  • @*Comment me *@

The host for ASP.NET Core web application is configured in _________ file?

Answer :
  • Program.cs

Middlewares can be configured in ___________ method of Startup class.

Answer :
  • Configure

Which of the following is an entry point of the ASP.NET Core application?

Answer :
  • Main method of Program class

Which of the following creates an async hyperlink?

Answer :
  • Ajax.actionLink

In an Asp.Net MVC Core Application, browser requests are mapped to:

Answer :
  • Controller

What is the default Action Method when an MVC project gets created?

Answer :
  • Index

Please mention the order of the Filters that get executed when we implement multiple filters in the application. A) Response filters B) Exception filters C) Action filters D) Authorization filters.

Answer :
  • DCAB

You are developing an ASP.NET MVC application by using Microsoft Visual Studio Professional. You plan to deploy the app to a Microsoft Azure App Services Web App. You must be able to edit files in the web application directly without having to redeploy or use other means of connecting to the web application. You need to update the Web.config file to enable remote error messages. What should you do?

Answer :
  • Use Visual Studio to remotely debug and update the file.

You are developing an ASP.NET Core MVC web application. You write a GULP task to automatically minify and upload JavaScript, CSS, and image files to Microsoft Azure CDN. You need to ensure that the minification and upload tasks run automatically after every build in Microsoft Visual Studio Professional. Which tool should you use?

Answer :
  • Task Runner Explorer After Build binding