Home »
MCQs »
Python MCQs
The while loop is intended to be used in situations where we do not know how many iterations will be required in advance?
49. The while loop is intended to be used in situations where we do not know how many iterations will be required in advance?
- True
- False
Answer: A) True
Explanation:
The while loop is intended to be used in situations where we do not know how many iterations will be required in advance. When a while loop is used, the block of statements within it is executed until the condition specified within the while loop is satisfied. It is referred to as a pre-tested loop in some circles.