Contents

Which the loop is best if the user needs only 20 values to print?
a) while                                 
b) do….while
c) for                                     
d) infinite

c

The semicolon is laced at the end of condition in…..
a) while loop                        
b) do……while loop
c) for loop                            
d) all of these

b

Which of the following is loop statement?
a) if                                        
b) if…. else
c) switch                                               
d) for

d

A loop structure that tests loop condition after executing the loop body is called…
a) post-test loop  
b) pre-qualified loop
c) no-test loop                     
d) pretest loop

a

The while loop is …… type of loop.
a) pretest loop    
b) no-test
c) pre-qualified    
d) post-test

a

When is for loop appropriate than while loop?
a) termination condition known
b) iteration not known
c) only once executed
d) loop executed at least once

a