Object Oriented Programming - Object Modelling - 2

56:  

A class is constructed in two sections, called

A.

header and body

B.

type and parameters

C.

declaration and implementation

D.

pointer and variable

 
 

Option: C

Explanation :

Click on Discuss to view users comments.

Write your comments here:



57:  

The declaration section holds

A.

data members

B.

data members and function prototypes

C.
data members, function prototypes and the functions themselves
D.

none of these

 
 

Option: B

Explanation :

Click on Discuss to view users comments.

Write your comments here:



58:  
If two objects are declared as Customer first Cust, then second Cust: which of the following must be true?
A.
Each object's nonstatic data members will be stored in the same memory location
B.
Each object will be stored in the same memory location
C.
Each object will store a separate copy of any nonstatic data members.
D.
Two objects of the same class cannnot be declared
 
 

Option: C

Explanation :

Click on Discuss to view users comments.

Write your comments here:



59:  
To declare two objects as Customer first Cust, second Cust which of the following must be true?
A.
Each object will store a separate copy of any static member data.
B.
Each object will store a separate copy of any member function
C.
Each object will store a separate copy of any nonstatic data members.
D.
Two objects of the same class, cannot be declared
 
 

Option: C

Explanation :

Click on Discuss to view users comments.

Write your comments here:



60:  

A static data member is given a value

A.

within the class defintion

B.

outside the class defintion

C.

when the program is executed

D.

never

 
 

Option: B

Explanation :

Click on Discuss to view users comments.

Write your comments here: