Contents

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 loop 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

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