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

How can you comment using Razor Syntax?

Answer :
  • @*Comment me *@

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

Answer :
  • Main method of Program class

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 Core MVC web application that will be deployed to Microsoft Azure App Services Web App. Scheduled downtime during the deployment of new features is not permitted. You need to ensure that deployments do not result in downtime. What should you do?

Answer :
  • Use deployment slots during deployments

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

You are developing an ASP.NET MVC application. The application uses a set of custom exceptions to log errors that occur during the execution of an action. You need to develop a class that implements logging. Which interface should you implement?

Answer :
  • IExceptionFilter

You are developing a collaborative text editor. Multiple users may simultaneously edit the same document from within the application. You need to ensure that users can see edits from all users as soon as they are made. Solution: Implement the application by using ASP.NET MVC. Configure the editor Controller action to return JSON data. Use XML HTTP requests for communicating editor changes. Does the solution meet the goal?

Answer :
  • No

You are developing the landing page for an ASP.NET Core MVC web application that will be used to host blogs. You are implementing a View component to show text links for common application operations. Users must be able to customize the HTML for landing pages. You need to ensure that the links for common operations reflect the desired layout of the application when links are embedded into customized views. Which CSS measurement unit should you use for the links?

Answer :
  • em