Contents

What is the way to suddenly come out of or Quit any loop in C Language?
a) continue;                         
b) break;
c) stop;                                  
d) quit;

b

The continue statement cannot be used with
a) for                                     
b) while
c) do while                            
d) switch

d

Explanation: continue is used to skip the statements and can-not be used with switch


Which keyword can be used for coming out of recursion?
a) return                              
b) break
c) exit                                    
d) both a and b

a

Explanation: Return is used for coming out of recursion


Goto can be used to jump from main to within a function?
a) TRUE                                               
b) FALSE
c) May Be                            
d) Can't Say

b

Explanation: goto statement in C programming provides an unconditional jump from the 'goto' to a labeled statement in the same function.


Which of the following is an invalid if-else statement?
a) if (if (a == 1)){}
b) if (a){}
c) if ((char) a){}
d) if (func1 (a)){}

a

Switch statement accepts.
a) int                                      
b) char
c) long                                   
d)  All of these

d

Explanation: switch statment accepts all int , char and long .