Object Oriented Programming - Object Modelling - 2

101:  

A function in a derived class that has the same name as a function in the parent class will

A.

override the base class function

B.

cause an error message to display

C.

be overridden by the base class function

D.

execute immediately often the base class function executes

 
 

Option: A

Explanation :

Click on Discuss to view users comments.

Write your comments here:



102:  

 The generic name used for unexpected errors that occur during the execution of a program is

A.

infractions

B.

exceptions

C.

deviations

D.

anomalies

 
 

Option: B

Explanation :

Click on Discuss to view users comments.

Write your comments here:



103:  

Before object-oriented exception handling was practiced,

A.

no run-time errors occurred

B.

programmers could not deal with run-time errors

C.

most popular error-handling method was to terminate the program

D.

most popular error-handling method was to throw an exception

 
 

Option: C

Explanation :

Click on Discuss to view users comments.

Write your comments here:



104:  

The type to be used in an instantiation of a class template follows

A.

generic class name

B.

keyword template

C.

keyword class

D.

template definition

 
 

Option: A

Explanation :

Click on Discuss to view users comments.

Write your comments here:



105:  
The difference between a return and a throw is that
A.

with a throw, no value can be sent

B.

with a return, no value can be sent

C.
with a throw, execution takes place at the location from which the function was called.
D.
with a return, execution takes place at the location from which the function was called.
 
 

Option: D

Explanation :

Click on Discuss to view users comments.

Write your comments here: