Classical

Object Oriented Programming - Object Modelling

21:  

Objects with arbitrary life times are created in

A.

heap memory

B.

main memory

C.

stock memory

D.

registers

 
 

Option: A

Explanation :


22:  
Consider the following statements:
 
I. For each object different copy of static data  members, available like normal data members.
II. Static data members must be defined and initialized like global variables, otherwise linking error will result.
 
Of these statements
A.

both I and II are true

B.

both I and II are false

C.

I is true and II is false

D.

II is true and I is false

 
 

Option: D

Explanation :


23:  
What exception will a function throw it an exception specification of the form throw () ?
A.

Of any type

B.

Class type

C.

both (a) and (b)

D.

function will not throw an exception

 
 

Option: C

Explanation :


24:  
If a catch clause {catch c( .. )} used with other catch clase, it should be placed
I. In the beginning oflist of exception handlers
II. Two level directory
III. Tree structured directory
IV. Any where
A.

Only I is correct

B.

Both II and III are correct

C.

Both I and III are correct

D.

Only II is correct

 
 

Option: D

Explanation :


25:  
When subscript operator is overloaded, then it can parameter of type
A.

Integer

B.

Character

C.

Any data type

D.

String

 
 

Option: D

Explanation :




Suggest an improvement