image not found

Oops! That page can't be found.


Directions to Solve

Which of phrases given below each sentence should replace the phrase printed in bold type to make the grammatically correct? If the sentence is correct as it is, mark 'E' as the answer.

Q1: If he has to spend five hours in the queue, it was really a wastage.

A is a really wastage

B is real a wastage

C has really a wastage

D is really a wastage

E No correction required

Q2: Range of float id -2.25e+308 to 2.25e+308

A True

B False

Q3: Destructor has the same name as the constructor and it is preceded by ______ .

A !

B !

C ~

D $

Q4: For automatic objects, constructors and destructors are called each time the objects

A enter and leave scope

B inherit parent class

C are constructed

D are destroyed

Q5: Which constructor function is designed to copy objects of the same class type?

A Create constructor

B Object constructor

C Dynamic constructor

D Copy constructor

Q6: Which of the following statement is correct?

A Constructor has the same name as that of the class.

B Destructor has the same name as that of the class with a tilde symbol at the beginning.

C Both A and B.

D Destructor has the same name as the first member function of the class.

Q7: Which of the following statement is incorrect?

A Constructor is a member function of the class.

B The compiler always provides a zero argument constructor.

C It is necessary that a constructor in a class should always be public.

D Both B and C.

Q8: When are the Global objects destroyed?

A When the control comes out of the block in which they are being used.

B When the program terminates.

C When the control comes out of the function in which they are being used.

D As soon as local objects die.

Q9: Copy constructor must receive its arguments by __________ .

A either pass-by-value or pass-by-reference

B only pass-by-value

C only pass-by-reference

D only pass by address

Q10: A function with the same name as the class, but preceded with a tilde character (~) is called __________ of that class.

A constructor

B destructor

C function

D object