You need to create a method to clear a Queue named q.

 Posted by aswinialuri-19361 on 9/25/2013 | Category: C# Interview questions | Views: 5410 | Points: 40
Select from following answers:
  1. foreach(object e in q){q.Dequeue();
  2. foreach(object e in q){q.Enqueue(null);
  3. q.clear();
  4. q.Dequeue();
  5. All Above

Show Correct Answer

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response