ASP.Net Core Multiple Choice Questions and Answers 2022

Question#1 What does WebHost.CreateDefaultBuilder() do?

a) Configure integration with IIS

b) Configure the default service provider

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

d) All of the above

Ans : All of the above

Question#2 What are technologies discontinued in .NET Core?

a) Binary Serialization

b) Remoting

c) Sandboxing

d) All of the above

Ans : All of the above

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

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

b) 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.)

c) 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

d) All of these

Ans : All of these

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

a) By using the view’s helper methods

b) By setting properties on the model that is passed to the view

c) By setting properties on the web controls that the view contains

d) By using ViewData dictionary

Ans : By using ViewData dictionary

Question#5 ASP.NET Core works with

a) .NET framework

b) .NET Core framework

c) Both of these

d) None

Ans : Both of these

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

a) Server object

b) Response object

c) Session object

d) Request object

Ans : Session object

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

a) Substring method of the String object

b) Plus sign operator to concatenate the strings

c) Append method of the StringBuilder object

d) Concat method of the String object

Ans : Append method of the StringBuilder object

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

a) Global.json

b) Appsettings.json

c) Launchsettings.json

d) All of the above

Ans : All of the above

Question#9 What is Startup.cs in Asp.net Core?

a) In Startup.cs file

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

c) The constructor loads the AppSettings.json file using ConfigurationBuilder class

d) All of the above

Ans : All of the above

Question#10 ASP.Net was released on

a) 2000

b) 2006

c) 2002

d) 2005

Ans : 2002

About Author


After years of Technical Work, I feel like an expert when it comes to Develop wordpress website. Check out How to Create a Wordpress Website in 5 Mins, and Earn Money Online Follow me on Facebook for all the latest updates.

Leave a Comment