Contents

How many times the following while loop print “Hello”;
int i=1; while(i<10)
cout<” Hello”;
a) 10      
b) 8 
c) 0        
d) infinite number

d

What is the output of given code fragment?
 int f=1, i=2;
while(++i<5) f*=I;
a) 6                        
b) 3                        
c) 12                      
d) 24

c

Which of the following is used for executing single statement or block of statements?
a) decision structure 
b) loops
c) switch statement            
 d) none of these

b

Which of the following are very important used in loops?
a) control structures
b) control programs
c) control execution           
d) control application

a

A sequence of instruction that is continually repeated is called……
a) loop                                  
b) program
c) algorithm                         
d) flowchart

a

What is/are the advantages of loop?
a) save time                         
b) save effort
c) both a & b                       
d) none of these

c