Object Oriented Programming - Object Modelling - 2

166:  

Function templates

A.

must have exactly one parameter

B.
may have more than one parameter as long as they are of the same type
C.

may have more than one parameters

D.

may not have parameters.

 
 

Option: B

Explanation :

Click on Discuss to view users comments.

Write your comments here:



167:  
The function that is actually created from a call to a template function is called
A.

generated

B.

inherited

C.

spawn

D.

declassified

 
 

Option: C

Explanation :

Click on Discuss to view users comments.

Write your comments here:



168:  
A function that is prototype as int calculate (int num); may
A.
receive an integer variable named num from the main () program
B.
receive any integer variable from the main () program
C.

either (a)  or (b)

D.

none of these

 
 

Option: C

Explanation :

Click on Discuss to view users comments.

Write your comments here:



169:  

In the statement template « class T»,

A.

T is a class

B.

T is a scalar variable

C.

either (a) or (b)

D.

none of these

 
 

Option: A

Explanation :

Click on Discuss to view users comments.

Write your comments here:



170:  

A function that uses variable types is called

A.

overloaded

B.

template function

C.

variable  function

D.

virtual function

 
 

Option: C

Explanation :

Click on Discuss to view users comments.

Write your comments here: