Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyC#foreach and iteratorsSingle-choice MCQ

How many times is "X" printed?

IEnumerable<int> Gen() { Console.Write("X"); yield return 1; yield return 2; } var seq = Gen(); foreach (var i in seq) { }