lenelex.com
Home
Quizzes
Games
Register
Log in
Question 1 of 20
What is the output of the following code snippet?
var q = new Queue<string>(new[] { "α", "λ" }); q.Enqueue("ω"); int index = Array.IndexOf(q.ToArray(), "ω"); Console.Write(index);
A. 2
B. 0
C. 1
D. 3
Links:
Queue Class
Queue<T> Class
Collections and Data Structures