Home »
MCQs »
C++ MCQs
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?
- While loop
- For loop
- Do while loop
- 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.