Object Oriented Programming - Object Modelling - 2

76:  
Which of the following constructor function prototypes would be correct in the declaration section of a class named Product that contains one data member, prodNum?
A.

Product (int n);

B.

Product (int n) (prod Num = n;);

C.

Product (int n): prod Num (n) ();

D.

All of the above

 
 

Option: D

Explanation :

Click on Discuss to view users comments.

Write your comments here:



77:  

The highest level of cohesion is

A.

functional cohesion

B.

temporal cohesion

C.

logical cohesion

D.

sequential cohesion

 
 

Option: A

Explanation :

Click on Discuss to view users comments.

Write your comments here:



78:  

Which of the following is true?

A.
Coincidental cohesion is stronger than procedural cohesion.
B.
Logical cohesion is stronger than coincidental cohesion.
C.
Sequential cohesion is weaker than temporal cohesion
D.

The weakest cohesion is functional

 
 

Option: B

Explanation :

Click on Discuss to view users comments.

Write your comments here:



79:  
If a derived class uses the public access specifier, then
A.
public base class members remain public in the derived class
B.
protected base class members become public in the derived class
C.

both (a) and (b)

D.

none of these

 
 

Option: A

Explanation :

Click on Discuss to view users comments.

Write your comments here:



80:  
A derived class name is separated from its access specifier with
A.

a colon

B.

two colons

C.

at least a space

D.

a semi colon

 
 

Option: C

Explanation :

Click on Discuss to view users comments.

Write your comments here: