.NET Programming MCQs with answers Page - 41

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. What is the purpose of 'System.Runtime.InteropServices' namespace?

  • (A) Handle XML schemas
  • (B) Access internal .NET attributes
  • (C) Support interop with COM and native code
  • (D) Manage thread pools

R

Ram Sharma • 3.40K Points
Extraordinary

Q. What kind of projects use 'global.json' in .NET?

  • (A) Web only
  • (B) All projects requiring SDK version pinning
  • (C) Console only
  • (D) Mobile apps only

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which file tells .NET runtime what DLL contains the application entry point?

  • (A) launchSettings.json
  • (B) deps.json
  • (C) runtimeconfig.json
  • (D) .dll.config

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which API provides low-level memory and buffer operations?

  • (A) System.Span<T>
  • (B) System.StringBuilder
  • (C) System.BufferManager
  • (D) System.HeapHandle

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which .NET package manager installs dependencies from nuget.org?

  • (A) dotnet cli
  • (B) NuGet
  • (C) msbuild
  • (D) netstore

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which CLI tool helps with real-time performance metrics?

  • (A) dotnet build
  • (B) dotnet stats
  • (C) dotnet-counters
  • (D) dotnet-info

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which option is used to disable tiered compilation in .NET?

  • (A) TieredCompilation=False
  • (B) COMPlus_TieredCompilation=0
  • (C) DisableTiering
  • (D) NoTierFlag=True

R

Ram Sharma • 3.40K Points
Extraordinary

Q. What is the role of 'System.Diagnostics.Debug' class?

  • (A) Handles test assertions
  • (B) Used only in production logs
  • (C) Provides debug-time logging and assertions
  • (D) Compiles project references

A

Admin • 833.24K Points
Coach

Q. What is .NET?

  • (A) A programming language
  • (B) A framework for building applications
  • (C) An operating system
  • (D) A database

A

Admin • 833.24K Points
Coach

Q. Which language is NOT supported by .NET?

  • (A) C#
  • (B) VB.NET
  • (C) Java
  • (D) F#

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