.NET Programming MCQs with answers Page - 39

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 type of assembly is NOT stored in the GAC?

  • (A) Shared assembly
  • (B) Private assembly
  • (C) Strong-named assembly
  • (D) Signed assembly

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which command adds a NuGet package in .NET Core?

  • (A) dotnet get
  • (B) dotnet nuget add
  • (C) dotnet add package
  • (D) nuget install

R

Ram Sharma • 3.40K Points
Extraordinary

Q. What is the purpose of `Assembly.Load()` in .NET?

  • (A) Load a project file
  • (B) Load an assembly into the current application domain
  • (C) Attach a debugger
  • (D) Register assembly in GAC

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which of these is true about .NET runtime identifiers (RIDs)?

  • (A) They define UI themes
  • (B) They target specific OS/runtime platforms
  • (C) They track project versions
  • (D) They enable object serialization

R

Ram Sharma • 3.40K Points
Extraordinary

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

  • (A) Networking support
  • (B) User authentication
  • (C) File and stream handling
  • (D) Object serialization

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which feature of .NET allows applications to respond to memory pressure?

  • (A) Finalizers
  • (B) Garbage collection notification
  • (C) Thread pooling
  • (D) Reflection

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which class provides access to the command-line arguments?

  • (A) System.CommandLine
  • (B) System.Args
  • (C) System.Environment
  • (D) System.Diagnostics

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which of the following supports multi-targeting in .NET projects?

  • (A) Multiple .csproj files
  • (B) TargetFrameworks element in .csproj
  • (C) Multiple solution files
  • (D) TargetConfig.json

R

Ram Sharma • 3.40K Points
Extraordinary

Q. What does the .NET CLI command 'dotnet migrate' do?

  • (A) Converts .NET Framework project to .NET Core
  • (B) Migrates packages from one format to another
  • (C) Updates project file to SDK-style format
  • (D) It was used to migrate from project.json to .csproj in older .NET Core versions

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which environment variable controls the runtime configuration in .NET?

  • (A) DOTNET_ENVIRONMENT
  • (B) ASPNET_ENV
  • (C) NET_RUNTIME_MODE
  • (D) CLR_OPTIONS

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