1.

Choose the wrong statement about the LINQ?(a) The main concept behind the linq is query(b) linq makes use of foreach loop to execute the query(c) It is not required that linq should make use of IEnumerable interface(d) None of the mentionedThis question was posed to me in homework.This interesting question is from Fundamental of LINQ topic in chapter Delegates, Generics and LINQ of C#

Answer»

Correct choice is (c) It is not required that linq should make use of IEnumerable interface

Explanation: LINQ at core is the query. A query SPECIFIES what data will be obtained from a data source. Query in linq is executed USING foreach loop. In order for a source of data to be USED by LINQ, it MUST IMPLEMENT the IEnumerable interface.



Discussion

No Comment Found

Related InterviewSolutions