.NET Programming MCQs with answers Page - 33

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. In .NET, what does 'side-by-side execution' refer to?

  • (A) Parallel programming
  • (B) Multiple users on one app
  • (C) Running different .NET versions simultaneously
  • (D) Debug and Release builds together

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which part of .NET enforces code access security (CAS)?

  • (A) JIT Compiler
  • (B) GAC
  • (C) CLR
  • (D) BCL

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which .NET runtime is optimized for mobile and embedded devices?

  • (A) CoreCLR
  • (B) .NET Framework
  • (C) Mono
  • (D) IL2CPP

R

Ram Sharma • 3.40K Points
Extraordinary

Q. What is the purpose of `reflection` in .NET?

  • (A) To draw UI elements
  • (B) To access metadata and types at runtime
  • (C) To convert strings to XML
  • (D) To display exception messages

R

Ram Sharma • 3.40K Points
Extraordinary

Q. What does `sn.exe` do in .NET?

  • (A) Starts a new solution
  • (B) Creates strong names for assemblies
  • (C) Installs NuGet packages
  • (D) Compiles source code

R

Ram Sharma • 3.40K Points
Extraordinary

Q. What is the purpose of `dotnet restore` command?

  • (A) Restore deleted files
  • (B) Clean build directories
  • (C) Download and install NuGet packages
  • (D) Revert Git changes

R

Ram Sharma • 3.40K Points
Extraordinary

Q. What is the function of the Base Class Library (BCL) in .NET?

  • (A) To define low-level APIs for I/O, collections, and strings
  • (B) To compile .NET code
  • (C) To manage memory
  • (D) To convert IL to native code

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which of the following represents the version-agnostic specification of .NET?

  • (A) .NET CLI
  • (B) .NET Runtime
  • (C) .NET Standard
  • (D) .NET SDK

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which runtime component is responsible for handling exceptions in .NET?

  • (A) JIT Compiler
  • (B) Base Class Library
  • (C) Common Language Runtime (CLR)
  • (D) Common Type System (CTS)

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which .NET command is used to publish a self-contained application?

  • (A) dotnet build
  • (B) dotnet run
  • (C) dotnet publish
  • (D) dotnet pack

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