Object Oriented Programming - Object Modelling - 2

126:  

Which of the following is an access specifier?

A.

Particular

B.

shielded

C.

protected

D.

safe

 
 

Option: C

Explanation :

Click on Discuss to view users comments.

Write your comments here:



127:  

The major advantage of data hiding is that

A.

programs can include more data

B.

no longer needed functions

C.

no one can ever use data

D.

data will be used correctly

 
 

Option: D

Explanation :

Click on Discuss to view users comments.

Write your comments here:



128:  

Two access specifiers in C++ are

A.

public and private

B.

int and double

C.

formal and informal

D.

void and free

 
 

Option: A

Explanation :

Click on Discuss to view users comments.

Write your comments here:



129:  
Making class members in accessible to nonmember functions is an example of 
A.

polymorphism

B.

data hiding

C.

redundancy

D.

recursion

 
 

Option: B

Explanation :

Click on Discuss to view users comments.

Write your comments here:



130:  
Which of the following is NOT a programmer defined type?
A.

An Array

B.

A structure

C.

A class

D.

All of the above are programmer defined types

 
 

Option: B

Explanation :

Click on Discuss to view users comments.

Write your comments here: