Object Oriented Programming - Object Modelling - 2

36:  
If an exception is thrown and no catch block matches the type of thrown parameter, then
A.

program terminates

B.

first catch block is executed

C.

last catch block is executed

D.
program proceeds with the code following the catch blocks.
 
 

Option: A

Explanation :

Click on Discuss to view users comments.

Write your comments here:



37:  

If no exception is thrown, then

A.

a catch block will cause an error

B.

the first catch block coded will execute

C.

the last catch block coded will execute

D.

any catch blocks coded will be by passed.

 
 

Option: D

Explanation :

Click on Discuss to view users comments.

Write your comments here:



38:  
The desired type is added to a specific template class instantiation by placing the type's name
A.

between angle brackets

B.

in parentheses

C.

on a line by itself

D.

immediately prior to the class name.

 
 

Option: A

Explanation :

Click on Discuss to view users comments.

Write your comments here:



39:  

You can throw

A.

a scalar variable

B.

one throw of each scale type

C.

a programmer-defined class object

D.

all of these

 
 

Option: D

Explanation :

Click on Discuss to view users comments.

Write your comments here:



40:  

A function can make

A.

one throw

B.

one throw of each scale type

C.

one throw of each programmer defined type

D.

as many throws of as many types as necessary.

 
 

Option: D

Explanation :

Click on Discuss to view users comments.

Write your comments here: