Which of the following loop is the best option when the number of iterations is known?

99. Which of the following loop is the best option when the number of iterations is known?

  1. While loop
  2. For loop
  3. Do while loop
  4. all loops require that the iterations be known

Answer: B) For loop

Explanation:

The "for" loop is the best option when the number of iterations is known.

Comments and Discussions!

Load comments ↻






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