.NET Programming MCQs with answers Page - 31

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 of these is NOT part of the .NET Base Class Library (BCL)?

  • (A) System.IO
  • (B) System.Collections
  • (C) System.Web.Mvc
  • (D) System.Text

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which of the following tools converts IL to native code ahead of time?

  • (A) ngen.exe
  • (B) ildasm.exe
  • (C) gacutil.exe
  • (D) sn.exe

R

Ram Sharma • 3.40K Points
Extraordinary

Q. What does an assembly's manifest contain?

  • (A) Only versioning info
  • (B) IL code and security settings
  • (C) Assembly metadata, version, and references
  • (D) Only codebase path

R

Ram Sharma • 3.40K Points
Extraordinary

Q. What is a satellite assembly in .NET?

  • (A) Main program logic
  • (B) Assembly with configuration settings
  • (C) Assembly containing localized resources
  • (D) Core system library

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which version of .NET first introduced cross-platform support?

  • (A) .NET Framework 4.6
  • (B) .NET Core 1.0
  • (C) .NET 2.0
  • (D) Silverlight

R

Ram Sharma • 3.40K Points
Extraordinary

Q. What is the purpose of CLS (Common Language Specification)?

  • (A) To ensure common exception types
  • (B) To define common compiler syntax
  • (C) To allow language interoperability
  • (D) To optimize runtime performance

R

Ram Sharma • 3.40K Points
Extraordinary

Q. What is a strong-named assembly?

  • (A) An assembly compiled with `debug` flag
  • (B) An assembly digitally signed with a public/private key pair
  • (C) An assembly with fast JIT compilation
  • (D) An assembly with fixed memory size

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which file contains project dependencies in a .NET Core app?

  • (A) global.json
  • (B) web.config
  • (C) packages.config
  • (D) csproj

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which component ensures type safety in the .NET runtime?

  • (A) JIT compiler
  • (B) Common Type System (CTS)
  • (C) Base Class Library
  • (D) Garbage Collector

R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which of the following is used to inspect the metadata of an assembly?

  • (A) ildasm.exe
  • (B) msbuild.exe
  • (C) gacutil.exe
  • (D) sn.exe