Multiple Choice Moderate

QWhich loop statement is used for iterating with a known number of iterations?

ID: #24866 Control flow in programming 9 views
Question Info
#24866Q ID
ModerateDifficulty
Control flow in programmingTopic

Select All That Apply

Tick every correct option, then press Check Answer.

  • A for
  • B while
  • C do-while
  • D if
Correct Answer

Explanation

Correct Answer:

(a) for

Explanation:

for loop is best when the number of repetitions is known.

Example:

    
      for(int i=1; i<=5; i++)
    

Share This Question

Challenge a friend or share with your study group.