The do…while loop works better for using the iterator than the regular while loop because:

A. studies have shown that the do…while loop is considerably faster in searching
B. the first function can be easily called within the do…while loop
C. although the first function is called to retrieve the first element outside of each loop, when the first element is processed, it would have to be processed outside of a regular while loop; in the do…while loop, the first element can be processed in the loop
D. the getNext function can be used in the condition for a do…while loop, but not for the
regular while loop


C

Computer Science & Information Technology

You might also like to view...

Declaring a method sealed means:

a) it will prepare the object for garbage collection b) it cannot be accessed from outside its class c) it cannot be overloaded d) it cannot be overridden

Computer Science & Information Technology

XML and JSON are both common formats for the exchange of information between web services

Indicate whether the statement is true or false

Computer Science & Information Technology

The Microsoft Surface computer is an example of a(n) ________ computer

Fill in the blank(s) with correct word

Computer Science & Information Technology

Password fields are ones that must be filled out before the form can be processed.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology