Classical

Object Oriented Programming - Object Modelling

111:  

A dumb terminal has

A.
prototypes for all functions that are freinds of a class are listed with the other function prototypes
B.
outside the class definition, but withiil the same file
C.

in the class declaration section

D.

in the class implementation section

 
 

Option: C

Explanation :


112:  

A class may

A.

not have friends

B.

have one friend

C.

have one friend function and one friend class

D.

have any number of friends

 
 

Option: D

Explanation :


113:  

Data hiding is used to create

A.

inline functions

B.

private class members

C.

nonscalar type

D.

cryptic code

 
 

Option: B

Explanation :


114:  

Classes can bestow friendship on

A.

non-member functions

B.

functions that are members of other classes

C.

both (a) and (b)

D.

none of these

 
 

Option: B

Explanation :


115:  

Friendship may be granted to

A.

no member functions of other classes

B.

one member function from one other class

C.
one member function each from as many classes as appropriate
D.
as many member functions of other classes as appropriate.
 
 

Option: D

Explanation :




Suggest an improvement