Solved

What Is the Difference in Execution Between the Two Following

Question 34

Multiple Choice

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.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions