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?

  1. True
  2. 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.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.