Contents

A loop within a loop is called…..
a) nested loop                     
b) complex loop
c) infinite loop     
d) dual loop

a

The loop which never ends is called……
a) infinite loop   
b) running loop
c) continuous loop              
d) nested loop

a

This statement is used to skip some statements inside loop…..
a) continue                          
b) default
c) switch                                               
d) skip

a

How many numbers of expressions in for loop?
a) 1                        
b) 3                        
c) 2                        
d) 4

b

Explanation: initialization, condition, counter


A for loop contains three expressions: initialization, condition and
a) assignment                      
b) validation
c) increment/decrement   
d) recalling

c

Which part of for loop is executed only once?
a) condition                         
b) validation
c) initialization  
d) all of these

c