Google News
logo
CPP - Quiz(MCQ)
Which looping process is best used when the number of iterations is known?
A)
while
B)
do-while
C)
for
D)
all looping processes require that the iterations be known

Correct Answer :   for


Explanation : Because in for loop we are allowed to provide starting and ending conditions of loops, hence fixing the number of iterations of loops, whereas no such things are provided by other loops.

Advertisement