.NET Programming MCQs with answers Page - 19

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 of the following is NOT a value type in .NET?

  • (A) int
  • (B) float
  • (C) decimal
  • (D) string

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which .NET keyword is used to handle exceptions?

  • (A) catch
  • (B) trap
  • (C) handle
  • (D) rescue

R

Ram Sharma • 3.40K Points
Extraordinary

Q. What is the output of Console.WriteLine("Hello" + 2 + 2);?

  • (A) Hello22
  • (B) Hello4
  • (C) 4Hello
  • (D) Error

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which method is the entry point of a C# console application?

  • (A) Start()
  • (B) Run()
  • (C) Main()
  • (D) Init()

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which namespace contains basic classes like Console, Math, etc.?

  • (A) System.Core
  • (B) System.Base
  • (C) System
  • (D) System.Utils

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which version of .NET introduced cross-platform support via .NET Core?

  • (A) .NET 2.0
  • (B) .NET Framework 4.5
  • (C) .NET Core 1.0
  • (D) .NET 5.0

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which .NET tool is used to manage packages?

  • (A) MSBuild
  • (B) CSC
  • (C) NuGet
  • (D) Roslyn

R

Ram Sharma • 3.40K Points
Extraordinary

Q. What does the keyword `static` mean in C#?

  • (A) Object can be instantiated
  • (B) Cannot be inherited
  • (C) Belongs to the class, not an instance
  • (D) Automatically public

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which loop executes at least once regardless of condition?

  • (A) for
  • (B) while
  • (C) foreach
  • (D) do-while

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which assembly type is used to share code across multiple applications?

  • (A) Private Assembly
  • (B) Public Assembly
  • (C) Shared Assembly
  • (D) Global Assembly

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