Self-Review Exercises

  1. 9.1 Fill in the blanks in each of the following statements:

    1. Use the               property of the List class to find the number of elements in the List.

    2. The LINQ               clause is used for filtering.

    3.               are classes specifically designed to store groups of objects and provide methods that organize, store and retrieve those objects.

    4. To add an element to the end of a List, use the               method.

    5. To get only unique results from a LINQ query, use the               method.

  2. 9.2 State whether each of the following is true or false. If false, explain why.

    1. The orderby clause in a LINQ query can sort only in ascending order.

    2. LINQ queries can be used on both arrays and collections.

    3. The Remove method of the List class removes an element at a specific index.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset