MCQOPTIONS
Saved Bookmarks
| 1. |
The correct code to access all the elements of the queue collection created using the C#.NET code snippets given below is? |
| A. | IEnumerator e;e = q.GetEnumerator();while(e.MoveNext())Console.WriteLine(e.Current); |
| B. | IEnumerable e;e = q.GetEnumerator();while(e.MoveNext()) |
| C. | IEnumerable ee = q.GetEnumerable();while(e.MoveNext())Console.WriteLine(e.Current); |
| D. | All of the mentioned |
| Answer» B. IEnumerable e;e = q.GetEnumerator();while(e.MoveNext()) | |