Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyC#LINQ Where and SelectSingle-choice MCQ

What is the result of this chained LINQ query?

var nums = new[] { 1, 2, 3, 4, 5, 6 }; var result = nums.Where(n => n % 2 == 0).Select(n => n * n); Console.WriteLine(string.Join(",", result));