Contents

Which of the following is used to terminate the function declaration?
a) :                                                         
b) )
c) terminator (;) 
d) ]

c

Which is more effective when calling the functions?
a) call by value   
b) call by reference
c) call by pointer 
d) call by object

b

What is the scope of the variable declared in the user defined function?
a) whole program               
b) only inside block {}
c) main function 
d) header section

b

Which of the following is the default return value of functions in C++?
a) int                                     
b) char
c) float                                  
d) void

a

An inline function is expanded during 
a) compile-time  
b) run-time
c) never expanded              
d) end of program

a

When do we define the default values for a function?
a) function is defined         
b) function is declared
c) scope of function is over
d) function is called

b