Question Detail

COM 101 COM 101 Past Questions Objective Question

Question

37. What is the main difference between a For loop a Do...While loop?
Options
A The For loop statement implicitly include the incremental value While the Do...While does not.
Correct Answer
B For loops are used in COBOL while Do...While is only used in VB
C There is no difference
D The Do...While statement implicitly includes the incremental value while the For loop does not
Correct Answer

Option A is the correct answer.

Detailed Explanation

For loops specify the increment/decrement in the statement; Do...While loops require manual incrementing.

Hint

For loops manage the counter automatically.

Question Info