Contents

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

b

The condition of while loop is mostly…
a) operator                           
b) parameter
c) relational expression   
d) none of these

c

The loop is executed when the condition remains….
a) true                                   
b) false
c) not false                           
d) none of these

a

Which loop contains condition after body?
a) while loop                        
b) do while loop
c) for loop                            
d) none of these

b

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

b

Which keyword indicates the beginning of the loop?
a) while                                 
b) condition
c) do                                      
d) none of these

c