Contents

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

b

Which symbol is used for body of the loop?
a) ()                                        
b) {}
c) []                                        
d) <>

b

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

a

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 loops continue execution until given condition remain true?
a) while loop                       
b) do while loop
c) for loop                            
d) none of these

a

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

b