Olete.in
Articles
Mock Tests
🧪 ASP.NET Core MCQ Quiz Hub
ASP.Net Core Multiple Choice Questions
Choose a topic to test your knowledge and improve your ASP.NET Core skills
1. What does WebHost.CreateDefaultBuilder() do?
Configure integration with IIS
Configure the default service provider
Configure logging to read from the Logging section of the appsettings.json file and log to the Console and Debug window.
All of the above
2. What are technologies discontinued in .NET Core?
Binary Serialization
Remoting
Sandboxing
All of the above
3. What are the main characteristics of ASP.NET Core?
There is no Global.asax – We have Startup.cs which is used to set up Middleware and services for DI Container
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.)
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
All of these
4. Select all the methods that can be used to pass data from the controller to the view.
By using the view’s helper methods
By setting properties on the model that is passed to the view
By setting properties on the web controls that the view contains
By using ViewData dictionary
5. ASP.NET Core works with
.NET framework
.NET Core framework
Both of these
None
6. Which of the following object encapsulates the state of the client and the browser?
Server object
Response object
Session object
Request object
7. Which one of the following is the fastest way to concat strings in ASP.NET?
Substring method of the String object
Plus sign operator to concatenate the strings
Append method of the StringBuilder object
Concat method of the String object
8. What are the various JSON files in ASP.NET Core?
Global.json
Appsettings.json
Launchsettings.json
All of the above
9. What is Startup.cs in Asp.net Core?
In Startup.cs file
In ASP.net Core,startup.cs is the entry point for your application
The constructor loads the AppSettings.json file using ConfigurationBuilder class
All of the above
10. ASP.Net was released on
2000
2006
2002
2005
Submit