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. ABAC
B. AABC
C. CBAA
D. ABC
Links:
HashSet<T> Class
Collections and Data Structures