What is/are the correct structure of while loop?
a) (condition)while{}
b) while(condition){}
c) {} while(condition)
d) {} (condition)while
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 contain condition after body?
a) while loop
b) do while loop
c) for loop
d) none of these
Which
is the correct syntax of do while loop?
a) (condition)do{}
b)
do {} while(condition)
c) {}do while(condition)
d) {} (condition) do
while
Which keyword indicate the beginning of the loop?
a) while
b) condition
c) do
d) none of these
The statement or group of statements in {} is called.
a) while
b) condition
c) do
d) body of the loop