In what order would the employee names in this example be printed to the console?csstring[] employees = { 'Joe', 'Bob', 'Carol', 'Alice', 'Will' };IEnumerable employeeQuery = from person in employees orderby person select person;foreach(string employee in employeeQuery){ Console.WriteLine(employee);}

🎲 Try a Random Question  |  Total Questions in Quiz: 69  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
C# (C-Sharp) Quiz — practice the complete quiz, review flashcards, or try a random question.

C# MCQs For LinkedIn Skill Assessments.


In what order would the employee names in this example be printed to the console?<br>cs<br>string[] employees = { 'Joe', 'Bob', 'Carol', 'Alice', 'Will' };<br>IEnumerable<string> employeeQuery = from person in employees<br> orderby person<br> select person;<br>foreach(string employee in employeeQuery)<br>{<br> Console.WriteLine(employee);<br>}<br>