do expression while statement;
do while expression;
do statement while (expression);
do statement while statement; E. None of the above
Answer is Wrong!
Answer is Right!
The correct answer is C. do statement while (expression);
A do-while statement is a control flow statement that executes a block of code repeatedly until a
448 288 448s170.8 0 213.4-11.5c23.5-6.3 42-24.2 48.3-47.8 11.4-42.9 11.4-132.3 11.4-132.3s0-89.4-11.4-132.3zm-317.5 213.5V175.2l142.7 81.2-142.7 81.2z"/>
Subscribe on YouTube
condition is met. The general form of a do-while statement is:
do {
statement;
} while (condition);
The statement is executed at least once, even if the condition is false. The condition is evaluated after each iteration of the loop. If the condition is true, the statement is executed again. If the condition is false, the loop terminates.
Option A is incorrect because it does not include the condition. Option B is incorrect because it does not include the statement. Option D is incorrect because it does not include the condition and the statement. Option E is incorrect because it is not a valid option.