lenelex.com
Home
Quizzes
Games
Register
Log in
Question 1 of 20
What is the output of the following code snippet?
var set = new HashSet<string>(); set.Add("A"); set.Add("B"); set.Add("A"); set.Add("C"); foreach (string value in set) { Console.Write(value); }
A. CBAA
B. ABC
C. ABAC
D. AABC
Links:
HashSet<T> Class
Collections and Data Structures