Contents

Which is correct, when the programmer wants to execute loop at least once?
a) while loop                        
b) do while loop
c) for loop                            
d) none of these

b

In do-while, the loop condition is terminated with……
a) colon                                
b) semicolon
c) comma                             
d) none of these

b

A loop within another loop is called….
a) for loop                            
b) while loop
c) do while loop   
d) nested loop

d

Which of the following is correct format of nested loop?
a) outer loop (inner loop)                  
b) outer loop {inner loop}
c) outer loop [inner loop]   
d) none of these

b

Statements can only be used inside the body of loop is called…
a) if                                        
b) break
c) continue                           
d) switch

c

Which of the following is not a loop structure?
a) switch                                               
b) while loop
c) do while loop   
d) nested loop

a