Contents

Which of the following is/are the main purposes, that loops are used?
a) one    
b) two    
c) three  
d) four

b

Explanation: to execute a statement for number of times, to execute a statement depending upon condition


How many types of loops available in C?
a) one    
b) two    
c) three 
d) four

c

Explanation: while do while, for


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

c

Explanation: initialization, condition, increment/decrement


Which specifies the starting value of counter variable?
a) initialization  
b) condition
c) increment                         
d) decrement

a

The statement within a loop is executed only when….is true.
a) initialization    
b) condition
c) increment                         
d) decrement

b