LINQ Test

Question 1: The full form of LINQ is _______.

Question 2: LINQ supports ________ syntax.

Question 3: Which of the following supports LINQ queries?

Question 4: A class must implement ____________ interface in order to provide querying facility using LINQ.

Question 5: Which of the following statement is TRUE?

Question 6: LINQ supports which of the following syntaxes?

Question 7: The following query is an example of ________ syntax.

var teenAgerStudent = from s in studentList
where s.Age > 12 && s.Age < 20
select s;

Question 8: The following query is an example of _______ syntax.

var std = students.Where(s => s.Age > 12).ToList<Student>();

Question 9: Which of the following statement is TRUE?

Question 10: s => s.Age > 12 && s.Age < 20; is an example of _______.

Question 11: Lambda expression can be invoked like a delegate.

Question 12: OrderByDescending is NOT supported in _______.

Question 13: Which of the following standard query operator returns the differences between the two collections?

Question 14: Which of the following standard query operator returns the unique elements from two collections?

Question 15: Which of the following standard query operator returns the common elements from two collections?

Question 16: Which of the following is TRUE?

Question 17: Expression tree is _________.

Question 18: Which of the following operators executes LINQ query immediately and gets the result?

Question 19: What is the difference between First and FirstOrDefault?

Question 20: Third party data providers must implement ________ interface, in order to support LINQ.