lenelex.com
Home
Quizzes
Games
Register
Log in
Question 1 of 20
What is the output of the following code snippet?
var list = new SortedList<int, string>(); list.Add(1, "C"); list.Add(2, "B"); list.Add(3, "A"); foreach (var p in list) { Console.Write( p.Value); }
A. BAC
B. ACB
C. ABC
D. CBA
Links:
SortedSet<T> Class
Collections and Data Structures