What is the use of FOR loop?

27 views
  • To repeat the statement finite number of times (Correct Answer)
  • To repeat the statement until any condition holds true
  • To repeat the statements for infinite time
  • To repeat statements inside until any condition is false

Explanation

FOR LOOP iteration scheme is used to repeat the statements enclosed within a fixed number of times. There is no condition used in the for loop, but a limit is set which must be static and the loop will run only given number of times.

Comments (0)

No comments yet. Be the first to comment!

Want to practice more?

Explore thousands of MCQs across every exam category on Exams Nepal.

Find More MCQs