Contents

if there is no match the default block of variable is executed is called……
a) if statement                     
b) if-else statement
c) nested if                           
d) switch statement

d

Which symbol is used for writing a statement after condition?
a) {}                                       
b) []
c) ()                                        
d) <>

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

Which of the following 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