.NET Programming MCQs with answers Page - 34

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 does the .NET Host (dotnet.exe) do?

  • (A) Runs the compiler directly
  • (B) Creates a Windows process
  • (C) Locates and invokes the correct runtime and application entry point
  • (D) Performs garbage collection

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which of the following manages memory allocation in .NET?

  • (A) Assembly Loader
  • (B) Common Language Specification
  • (C) Garbage Collector
  • (D) MSIL

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which .NET tool lists all installed SDKs and runtimes?

  • (A) dotnet --info
  • (B) dotnet list
  • (C) dotnet env
  • (D) dotnet config

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which of the following is used for cross-language integration in .NET?

  • (A) FCL
  • (B) CLS
  • (C) GAC
  • (D) GC

R

Ram Sharma • 3.40K Points
Extraordinary

Q. What does the term 'intermediate language' refer to in .NET?

  • (A) Assembly instructions
  • (B) Precompiled C# code
  • (C) Language-neutral code produced by .NET compilers
  • (D) Encrypted managed code

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which file is responsible for restoring NuGet packages in a .NET Core project?

  • (A) packages.config
  • (B) project.assets.json
  • (C) .csproj
  • (D) nuget.config

R

Ram Sharma • 3.40K Points
Extraordinary

Q. What does the `System.Runtime` namespace provide?

  • (A) Access to GUI libraries
  • (B) Runtime-specific low-level operations
  • (C) Data annotations
  • (D) File upload features

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which part of .NET defines the core types and base classes?

  • (A) GAC
  • (B) CTS
  • (C) BCL
  • (D) FCL

R

Ram Sharma • 3.40K Points
Extraordinary

Q. What is the main purpose of the `dotnet clean` command?

  • (A) Delete source files
  • (B) Clean Git cache
  • (C) Remove output from previous builds
  • (D) Reset NuGet cache

R

Ram Sharma • 3.40K Points
Extraordinary

Q. What is the difference between .NET Framework and .NET Core?

  • (A) Framework is faster
  • (B) Core is cross-platform and open-source
  • (C) Framework is open-source only
  • (D) There is no difference

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