Object Oriented Programming - Object Modelling - 2

171:  
A function that  is prototyped as double calculate (int num); may
A.

receive an integer constant such as 5

B.

receive an integer variable

C.

either (a) or (b)

D.

none of these

 
 

Option: B

Explanation :

Click on Discuss to view users comments.

Write your comments here:



172:  

Which of the following statement is correct?

A.
A derived class may have more than one base class
B.
A base class may have more than one derived class
C.

Both (a) and (b)

D.

none of these

 
 

Option: C

Explanation :

Click on Discuss to view users comments.

Write your comments here:



173:  
Inheritance occurs when a class adops all the traits of a/an
A.

object

B.

parent class

C.

variable

D.

function

 
 

Option: C

Explanation :

Click on Discuss to view users comments.

Write your comments here:



174:  

Object is to class as

A.

library is to book

B.

mother is to daughter

C.

Plato is to philosopher

D.

President is to Lincoln.

 
 

Option: B

Explanation :

Click on Discuss to view users comments.

Write your comments here:



175:  
A program that predicts exact sequence in which events will take place is said to be
A.

compiled

B.

interpreted

C.

procedural

D.

object-oriented

 
 

Option: C

Explanation :

Click on Discuss to view users comments.

Write your comments here: