Complete the code to select all names from the list of people.
var names = people.Select(person => person.[1]);The Name property holds the person's name, which we want to select.
Complete the code to filter people older than 30.
var olderThan30 = people.Where(person => person.[1] > 30);
The Age property holds the person's age, which we compare to 30.
Fix the error in the LINQ query to order people by their age.
var ordered = people.OrderBy(person => person.[1]);Ordering by Age sorts people by their age correctly.
Fill both blanks to create a dictionary with names as keys and ages as values for people older than 25.
var dict = people.Where(p => p.[1] > 25).ToDictionary(p => p.[2], p => p.Age);
Filter by Age > 25, then use Name as dictionary keys.
Fill all three blanks to select uppercase names of people younger than 40.
var result = people.Where(p => p.[1] < 40).Select(p => p.[2].[3]());
Filter by Age less than 40, select Name, then convert to uppercase with ToUpper().
