.NET Programming MCQs with answers Page - 36

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 method forces the garbage collector to run immediately?

  • (A) GC.Stop()
  • (B) GC.Run()
  • (C) GC.Collect()
  • (D) GC.Execute()

R

Ram Sharma • 3.40K Points
Extraordinary

Q. What is the entry point method of a .NET application?

  • (A) Main()
  • (B) Start()
  • (C) Execute()
  • (D) Launch()

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which format are .NET assemblies stored in?

  • (A) ELF
  • (B) COFF
  • (C) PE (Portable Executable)
  • (D) JAR

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which type of .NET assemblies can be versioned and shared across apps?

  • (A) Private assemblies
  • (B) Embedded assemblies
  • (C) Strong-named assemblies
  • (D) Temporary assemblies

R

Ram Sharma • 3.40K Points
Extraordinary

Q. What does the `System.AppContext` class provide in .NET Core?

  • (A) UI context switching
  • (B) Global configuration values
  • (C) File stream access
  • (D) HTTP routing

R

Ram Sharma • 3.40K Points
Extraordinary

Q. What is the role of the `System.Environment` class in .NET?

  • (A) Logging operations
  • (B) Access to system and process-level information
  • (C) I/O operations
  • (D) Networking configuration

R

Ram Sharma • 3.40K Points
Extraordinary

Q. What is a 'neutral culture' in .NET globalization?

  • (A) Culture with no formatting rules
  • (B) Culture specific to a region
  • (C) Culture without a country/region specification
  • (D) Culture used for math operations

R

Ram Sharma • 3.40K Points
Extraordinary

Q. What is the function of the `System.Diagnostics.Trace` class?

  • (A) Performance tuning
  • (B) Database tracing
  • (C) Tracing and logging for debugging
  • (D) Encrypting system logs

R

Ram Sharma • 3.40K Points
Extraordinary

Q. What is the purpose of `dotnet tool` commands?

  • (A) Install packages from GAC
  • (B) Manage project references
  • (C) Install, update, or uninstall .NET CLI tools
  • (D) Compile test classes

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which file defines the target framework in a .NET project?

  • (A) Program.cs
  • (B) launchSettings.json
  • (C) csproj file
  • (D) NuGet.config

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