Question Detail
Question
What are the three essential components for a
while loop to function correctly and avoid infinite loops, as described in the 'Anatomy of a While Loop' slide?
Correct Answer
Option B is the correct answer.
Detailed Explanation
Page 4 explicitly lists 'while: The keyword to start.', 'Condition: Must be True to run.', and '+ Update: Essential to prevent infinite loops!' as the three critical components.
Hint
Look for the bullet points describing the parts of a
while loop on page 4.