Classical

Object Oriented Programming - Object Modelling

61:  

The arguments of class template are of

A.

character string type

B.

static class member

C.

template type

D.

all of these

 
 

Option: D

Explanation :


62:  
Which of the following two statements are correct?
I We can derive a class from non-template base class.
II We can add more template members in the derived class.
A.

Both are correct

B.

Both are wrong

C.

Only I

D.

Only II

 
 

Option: A

Explanation :


63:  
Member function of a class template should be defined
A.

within the class template definition

B.

outside class template definition

C.

either (a) or (b)

D.

in the derived class

 
 

Option: C

Explanation :


64:  

A class template can declare

A.

global data members

B.

constant data members

C.

static data members

D.

both (b) and (c)

 
 

Option: C

Explanation :


65:  

Template support

A.

generic programming

B.

object-oriented programming

C.

procedural programming

D.

structured programming

 
 

Option: A

Explanation :




Suggest an improvement