.NET Programming MCQs with answers Page - 22

Here, you will find a collection of MCQ questions on .NET Programming. Go through these questions to enhance your preparation for upcoming examinations and interviews.

To check the correct answer, simply click the View Answer button provided for each question.

Have your own questions to contribute? Click the button below to share your MCQs with others!

+ Add Question

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which object is used to manage session state in ASP.NET?

  • (A) ViewState
  • (B) Session
  • (C) Application
  • (D) TempData

R

Ram Sharma • 3.40K Points
Extraordinary

Q. What is the extension of a Razor View Page in ASP.NET Core?

  • (A) .razor
  • (B) .cs
  • (C) .cshtml
  • (D) .aspx

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which class is used to represent a database context in Entity Framework?

  • (A) DbModel
  • (B) DbSet
  • (C) DbContext
  • (D) EntityBase

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which method is used to retrieve data from a DbSet in Entity Framework?

  • (A) Add()
  • (B) Find()
  • (C) Remove()
  • (D) Insert()

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which design pattern does ASP.NET MVC follow?

  • (A) MVVM
  • (B) MVP
  • (C) MVC
  • (D) Singleton

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which HTTP verb is used by default in a GET request?

  • (A) POST
  • (B) GET
  • (C) PUT
  • (D) DELETE

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which NuGet package is required to use Entity Framework Core?

  • (A) Microsoft.EntityFramework
  • (B) Microsoft.EFCore
  • (C) Microsoft.EntityFrameworkCore
  • (D) EFCore.Sql

R

Ram Sharma • 3.40K Points
Extraordinary

Q. In ASP.NET Core, where are configuration values typically stored?

  • (A) web.config
  • (B) app.config
  • (C) settings.json
  • (D) appsettings.json

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which method in LINQ is used to filter elements?

  • (A) Where()
  • (B) Select()
  • (C) GroupBy()
  • (D) Join()

R

Ram Sharma • 3.40K Points
Extraordinary

Q. What is the result of `Select()` in LINQ?

  • (A) Filtering values
  • (B) Projecting values
  • (C) Grouping values
  • (D) Sorting values

Add MCQ in this Category

If you want to share an MCQ question in this category, it's a great idea! It will be helpful for many other students using this website.

Share Your MCQ