Contents

Which loop is preferred when programmer want at least once loop executes?
a) for loop                            
b) while loop
c) do while loop  
d) nested loop

c

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

Which statement terminates the execution of the loop?
a) default                             
b) break
c) none of these  
d) loop

b

Which of the following correct syntax of break statement?
a) break()                             
b) break:
c) break;                              
d) break>

c

Which statement control shift back to the beginning of the loop?
a) default                             
b) break
c) continue                           
d) loop

c

Where continue statement is used?
a) outside body
b) inside body
c) before body                     
d) after body

b