Which symbol is used for body of the loop?
a) ()
b) {}
c) []
d) <>
Which loop is preferred when programmer known, how many time loop executes?
a) for loop
b) while loop
c) do while loop
d) nested loop
What is/are the correct structure of for loop?
a) for (initialization, condition, increment)
b) for (initialization, increment, condition)
c) for (increment, condition, initialization)
d) for (condition, increment, initialization)
Which loop continue execution until given condition remain true?
a) while loop
b) do while loop
c) for loop
d) none of these
What is/are the correct structure of
while loop?
a) (condition)while{}
b) while(condition){}
c) {} while(condition)
d) {} (condition)while
Which loop is useful when number of repetitions is not known in advance?
a) for loop
b) while loop
c) do while loop
d) all of these