Classical

Object Oriented Programming - Object Modelling

116:  
Creating a class definition when one class is granting friendship to a function that is a member of another class requires first
A.
a forward declaration of the class that holds the member function being granted friendship
B.
a forward declaration of the class that is granting friendship
C.
definition of the class that contains the function that will be a friend
D.

definition of the class that is granting friendship.

 
 

Option: B

Explanation :


117:  

If My Class is a friend of Your-Class, which is true?

A.

Your Class is a friend of My Class

B.

Your Class is not a friend of MY Class

C.

Your c!ass may or may not be a friend of My Class

D.

Your Class cannot be a friend of My Class.

 
 

Option: C

Explanation :


118:  
Forcing a variable type to become another type before accessing an appropriate function is called
A.

regression

B.

recursion

C.

conversion

D.

coersion

 
 

Option: D

Explanation :


119:  

Without overloading of the + operator,

A.

addition could not be performed on built-in types

B.

addition could not be performed on class objects

C.

class objects could not be added to one another

D.
programs would be harder to read and understand.
 
 

Option: D

Explanation :


120:  
Which of the following operators may be overloaded?
A.

.(Member)

B.

::(scope resolution)

C.

%(Modulus)

D.

?:(conditional)

 
 

Option: D

Explanation :




Suggest an improvement