Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumC#deferred vs immediate LINQSingle-choice MCQ

What does this code print, given that Select is a deferred LINQ operator?

var nums = new List<int> { 1, 2, 3 }; var query = nums.Select(n => n * 10); nums.Add(4); Console.WriteLine(string.Join(",", query));