Top 150+ Solved C# Programming MCQ Questions Answer

From 136 to 144 of 144

Q. Choose the namespace in which the interface IEnumerable is declared?

a. System.Collections

b. System.Collections.Generic

c. Both a & b

d. None of the mentioned

  • a. System.Collections

Q. Can we use linq to query against a DataTable?

a. Yes

b. No

c. Situational

d. None of the mentioned

  • a. Yes

Q. Select the namespace which should be included while making use of LINQ operations:

a. System.Text

b. System.Collections.Generic

c. System.Linq

d. None of the mentioned

  • c. System.Linq

Q. What is meant by the term generics?

a. parameterized types

b. class

c. structure

d. interface

  • a. parameterized types

Q. Are generics in C# are same as the generics in java and templates in C++?

a. Yes

b. No

c. May be

d. None of the mentioned

  • a. Yes

Q. Choose the advantages of using generics?

a. Generics facilitate type safety

b. Generics facilitate improved performance and reduced code

c. Generics promote the usage of parameterized types

d. All of the mentioned

  • d. All of the mentioned

Q. Which among the given classes present in System.Collection.Generic.namespace?

a. Stack

b. Tree

c. Sorted Array

d. All of the mentioned

  • a. Stack

Q. Which feature enables to obtain information about use and capabilities of types at runtime?

a. Runtime type ID

b. Reflection

c. Attributes

d. None of the mentioned

  • b. Reflection

Q. Choose the namespace which consists of classes that are part of .NET Reflection API:

a. System.Text

b. System.Name

c. System.Reflection

d. None of the mentioned

  • c. System.Reflection
Subscribe Now

Get All Updates & News