.NET Programming MCQs with answers Page - 35

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 runtime optimization tool precompiles IL to native code?

  • (A) dotnet publish
  • (B) csc.exe
  • (C) ngen.exe
  • (D) msbuild.exe

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which part of .NET handles type safety, memory, and exception handling?

  • (A) Base Class Library
  • (B) JIT Compiler
  • (C) Common Language Runtime
  • (D) Intermediate Language

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which tool allows inspection of the contents of a .NET DLL file?

  • (A) ildasm.exe
  • (B) dotnet dump
  • (C) dotnet inspect
  • (D) reflector.exe

R

Ram Sharma • 3.40K Points
Extraordinary

Q. What is the purpose of the Common Language Infrastructure (CLI)?

  • (A) Standardize command-line interfaces
  • (B) Enable cross-language interoperability
  • (C) Define web API specifications
  • (D) Manage source control

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which component converts IL to CPU-specific code during execution?

  • (A) Compiler
  • (B) GC
  • (C) JIT Compiler
  • (D) BCL

R

Ram Sharma • 3.40K Points
Extraordinary

Q. What is the use of `System.Diagnostics` namespace?

  • (A) Networking
  • (B) Diagnostic and logging operations
  • (C) Machine learning
  • (D) Database access

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which .NET tool is used to package libraries for NuGet?

  • (A) dotnet pack
  • (B) nuget.exe
  • (C) msbuild.exe
  • (D) dotnet build

R

Ram Sharma • 3.40K Points
Extraordinary

Q. What is the purpose of the `System.Threading` namespace?

  • (A) Manage file streams
  • (B) Manage network calls
  • (C) Support multithreaded programming
  • (D) Support memory-mapped files

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which tool is used to generate documentation from XML comments in .NET?

  • (A) docfx
  • (B) msbuild
  • (C) dotnet doc
  • (D) csc /doc

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which .NET directory contains shared assemblies for global use?

  • (A) bin\Debug
  • (B) GAC (Global Assembly Cache)
  • (C) lib\shared
  • (D) obj\Release

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