Solved

What Is the Difference in Execution Between the Two Following

Question 21

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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents