Object Oriented Programming - Object Modelling - 2

116:  
The exceptions may be explicitly indicate that a function may throw by writing an exception
A.

specification

B.

header

C.

template

D.

statement

 
 

Option: A

Explanation :

Click on Discuss to view users comments.

Write your comments here:



117:  
When the function int some Function (char e) throw () is executed,
A.

it can throw anything

B.

it can throw an integer

C.

it can throw a character

D.

it may not throw anything

 
 

Option: D

Explanation :

Click on Discuss to view users comments.

Write your comments here:



118:  
When the function void some Function (int,X) throw (char) is executed,
A.

it will throw nothing

B.

it will throw an integer

C.

it will throw a character

D.

it may not throw anything.

 
 

Option: C

Explanation :

Click on Discuss to view users comments.

Write your comments here:



119:  

Which of the following statement is false?

A.
A class encapsulates all of an object's attributes and behaviours
B.
An example of an attribute is the minutes variable in a time class
C.
An example of a behaviour is the set function in a time class
D.

A class is considered an object.

 
 

Option: D

Explanation :

Click on Discuss to view users comments.

Write your comments here:



120:  
Which of the following creates an animal object names dog?
A.

animal "dog";

B.

animal dog;

C.

dog "animal";

D.

dog animal;

 
 

Option: B

Explanation :

Click on Discuss to view users comments.

Write your comments here: