Contents

What are mandatory parts in the function declaration?
a) return type, function name        
b) return type, function name, parameter
c) parameter, function name                           
d) parameter, variables

a

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