Complete the code to select the names from the list of people.
var names = people.Select(person => person.[1]);The Select clause projects each person to their Name property.
Complete the code to select the ages from the list of people.
var ages = people.Select(person => person.[1]);The Select clause projects each person to their Age property.
Fix the error in the code to select the uppercase names.
var upperNames = people.Select(person => person.Name.[1]());The correct method to convert a string to uppercase in C# is ToUpper().
Fill both blanks to select the first letter of each person's name and convert it to lowercase.
var firstLetters = people.Select(person => person.Name[1]0[2].ToString().ToLower());
To get the first letter of a string, use square brackets [] with index 0. Then call ToString() and ToLower() to convert it.
Fill all three blanks to select a new object with uppercase name and age doubled.
var result = people.Select(person => new { Name = person.Name.[1](), Age = person.[2] * [3] });This code creates a new object with the name in uppercase and the age multiplied by 2.