Contents

What is/are the correct structure of while loop?
a) (condition)while{}         

b) while(condition){}
c) {} while(condition)   

d) {} (condition)while

b

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)

a

Which loop contain condition after body?
a) while loop                                        

b) do while loop
c) for loop                                            

d) none of these

b

Which is the correct syntax of do while loop?
a) (condition)do{}   

b) do {} while(condition)
c) {}do while(condition)
d)
{} (condition) do while

b

Which keyword indicate the beginning of the loop?
a) while                                 

b) condition
c) do                                                      

d) none of these

c

The statement or group of statements in {} is called.
a) while                                 

b) condition
c) do                                      

d) body of the loop

d