You need to create a method to clear a Queue named q. Which code segment should you use?

You need to create a method to clear a Queue named q. Which code segment should you use?

A. Dim e As ObjectFor Each e In qq.Dequeue()Next
B. Dim e As ObjectFor Each e In qq.Enqueue(Nothing)Next
C. q.Clear()
D. q.Dequeue()

Answer: C

No comments:

Post a Comment