Object Oriented Programming - Object Modelling - 2

141:  

A variable w with a value 67 may be defined with

A.

int w = 67

B.

int w(67);

C.

 int 67(w) ;

D.

both (a) and (b)

 
 

Option: B

Explanation :

Click on Discuss to view users comments.

Write your comments here:



142:  

A constructor may be ............ ..

A.

provided automatically by C++

B.

written by you

C.

either (a) or (b)

D.

none of these

 
 

Option: D

Explanation :

Click on Discuss to view users comments.

Write your comments here:



143:  
Overloading involves writing two or more function with
A.

different names and different argument lists

B.

different names and the same argument list

C.

the same name and different argument list.

D.

the same name and the same argument list.

 
 

Option: C

Explanation :

Click on Discuss to view users comments.

Write your comments here:



144:  

In C++, class definitions are most often

A.

stored with each program that uses them

B.
stored in a header file that is included in the programs that use them
C.
stored in a folder that you paste into every new project
D.

retyped for every new project

 
 

Option: D

Explanation :

Click on Discuss to view users comments.

Write your comments here:



145:  

Many programmers separate a class into two files:

A.
one for the declarations and one for the implementations
B.
one for the void functions and one for the other functions.
C.
one for the public data and one for the private data
D.
one for the primary functions and one for the auxiliary functions
 
 

Option: B

Explanation :

Click on Discuss to view users comments.

Write your comments here: