Which type of loop is best suited when the number of iterations is known ahead of time? 

  • do-while loop 
  • while loop 
  • for loop 
  • recursive function
A for loop is best suited when the number of iterations is known ahead of time, as it allows for an initial statement (typically for initialization), a condition check, and an increment/decrement operation in a compact syntax.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *