What is the difference in execution between the two following sections of code?

```
'Example 1
intCounter = 0
Do While intCounter < 10
lstOutput.Items.Add(intCounter * intCounter)
intCounter = intCounter + 1
Loop

'Example 2
For intCounter = 0 to 9
lstOutput.Items.Add(intCounter * intCounter)
Next intCounter
```

a. The loop in the first example will execute one more time than the second example.
b. The first example is an infinite loop.
c. Both loops are executed in an identical manner.
d. The loop in the first example will never be executed.


c. Both loops are executed in an identical manner.

Computer Science & Information Technology

You might also like to view...

Reference type is useful for

a) implementing call-by-reference b) overloading operators in a natural way c) return type from index operator overloading d) different from the type the reference refers to, so ampersand must be used in the declaration in a class as well as in the separate definition

Computer Science & Information Technology

If you need to see information about problems and errors that have happened over time, what utility should you use?

A. Performance Monitor B. Resource Monitor C. Reliability Monitor D. Services Console

Computer Science & Information Technology

Folders that are no longer needed should be ________

A) moved B) renamed C) copied D) deleted

Computer Science & Information Technology

You can save changes to a document at any time by clicking the Save button on the Standard toolbar.

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

Computer Science & Information Technology