Which of the following is an exclusive feature of C#?

  1. Object Oriented

  2. IL

  3. XML documentation

  4. Garbage Collection


Correct Option: C

AI Explanation

To answer this question, you need to understand the features of the C# programming language. Let's go through each option to understand why it is correct or incorrect:

Option A) Object Oriented - This option is incorrect because C# is an object-oriented programming language, but it is not an exclusive feature of C#. Many programming languages, such as Java and C++, are also object-oriented.

Option B) IL - This option is incorrect because Intermediate Language (IL) is not an exclusive feature of C#. IL is a common feature in languages that target the .NET framework, including C#.

Option C) XML documentation - This option is correct because XML documentation is an exclusive feature of C#. C# allows developers to document their code using XML comments, which can be used to generate documentation files.

Option D) Garbage Collection - This option is incorrect because garbage collection is not an exclusive feature of C#. Garbage collection is a memory management technique that is used in many programming languages, including C#.

The correct answer is C) XML documentation. This option is correct because XML documentation is a feature that is unique to C# and allows developers to document their code using XML comments.

Find more quizzes: