Contents

Which loop executes one or more statement for a specified number of times?
a) while loop                        
b) do while loop
c) for loop                           
d) none of these

C

How many parameters are in for loop?
a) one                                    
b) two
c) three                                 
d) four

b

Explanation: initialization, condition, increment/decrement


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

Which loops execute once body of loop must when the condition is false for first time?
a) while loop                        
b) do while loop
c) for loop                            
d) none of these

b