Contents

A statement in the calling function to execute the code of function is called….
a) function prototype
b) function definition
c) function call                   
d) all of these

c

Which of the following is the correct format for function call?
a) add (a, b);                        
b) add {a, b};
c) add [a, b];                        
d) none of these

a

How many components are in function?
a) one    
b) two    
c) three 
d) four

c

Explanation: function prototype/declaration, function definition, function call


The part of function that tells the compiler the name of function, the type of data return by function, number of parameters is called……
a) function prototype       
b) function definition
c) function call    
d) all of these

a

A type of function that has no body is known as……
a) function                           
b) virtual function
c) pure virtual function   
d) none of these

c

Which of the following is the syntax f pure virtual function?
a) pure virtual return_type func()
b) virtual return_type func() pure;
c) virtual return_type func() = 0;  
d) virtual return_type func()

c