ASP.NET Core/ASP.Net Core Multiple Choice Questions Sample Test,Sample questions

Question:
 ASP.Net was released on

1.2000

2.2006

3.2002

4.2005


Question:
ASP.NET Core works with

1. .NET framework

2. .NET Core framework

3.Both of these

4.None


Question:
Select all the methods that can be used to pass data from the controller to the view.

1.By using the view’s helper methods

2.By setting properties on the model that is passed to the view

3.By setting properties on the web controls that the view contains

4.By using ViewData dictionary


Question:
What are technologies discontinued in .NET Core?

1.Binary Serialization

2.Remoting

3.Sandboxing

4. All of the above


Question:
What are the main characteristics of ASP.NET Core?

1.There is no Global.asax – We have Startup.cs which is used to set up Middleware and services for DI Container

2.There is no web.config. We now use an appsettings.json file in combination with other sources of configuration (command line args, environment variables, etc.)

3.ASP.NET All meta package which improves development speed, and enables you to reference all Microsoft packages for ASP.NET Core and it will deploy only those that are being used by your code

4. All of these


Question:
What are the various JSON files in ASP.NET Core?

1.Global.json

2.Appsettings.json

3.Launchsettings.json

4. All of the above


Question:
What does WebHost.CreateDefaultBuilder() do?

1. Configure integration with IIS

2. Configure the default service provider

3.Configure logging to read from the Logging section of the appsettings.json file and log to the Console and Debug window.

4.All of the above


Question:
What is Startup.cs in Asp.net Core?

1. In Startup.cs file

2.In ASP.net Core,startup.cs is the entry point for your application

3.The constructor loads the AppSettings.json file using ConfigurationBuilder class

4. All of the above


Question:
Which of the following object encapsulates the state of the client and the browser?

1. Server object

2.Response object

3.Session object

4.Request object


Question:
Which one of the following is the fastest way to concat strings in ASP.NET?

1.Substring method of the String object

2.Plus sign operator to concatenate the strings

3.Append method of the StringBuilder object

4.Concat method of the String object


More MCQS

  1. ASP.NET Core MCQ Question
  2. ASP.Net Core Multiple Choice Questions
Search
Olete Team
Online Exam TestTop Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on Online Exam Testwebsite is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!