Software Development Fundamentals — Question 38

What are two methods that can be used to evaluate the condition of a loop at the start of each iteration? (Each correct answer presents a complete solution.
Choose two. )

Answer options

Correct answer: C, D

Explanation

The correct answers are C and D because both 'For' and 'While' loops check the loop condition at the beginning of each iteration. In contrast, 'Do...While' evaluates the condition after the loop body has been executed, which does not meet the requirement of checking at the start.