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: My hair stood off ends when I saw the horrible sight.

A stands on ends

B stood on ends

C No correction required

D stood to ends

E stood at ends

Q2: Suppose a program is divided into three files f1, f2 and f3, and a variable is defined in the file f1 but used in files f2 and f3. In such a case would we need the extern declaration for the variables in the files f2 and f3?

A No

B Yes

Q3: How many default constructors per class are possible?

A Two

B Unlimited

C Three

D Only one

Q4: Which of the following statement is correct about destructors?

A A destructors return type is always same as that of main().

B A destructor has integer return type.

C A destructor has no return type.

D A destructor has void return type.

Q5: Which of the following statement is correct?

A A constructor cannot be overloaded.

B A constructor always returns an integer.

C A constructor has the same name as the class in which it is present.

D A constructor has a different name than the class in which it is present.

Q6: Which of the following implicitly creates a default constructor when the programmer does not explicitly define at least one constructor for a class?

A Linker

B Loader

C Compiler

D Preprocessor

Q7: A destructor takes __________ arguments.

A three

B two

C no

D one

Q8: Destructor calls are made in which order of the corresponding constructor calls?

A Depends on how many objects are constructed

B Forward order

C Depends on how the object is constructed

D Reverse order

Q9: Which of the following never requires any arguments?

A const function

B Friend function

C Member function

D Default constructor

Q10: A class's __________ is called when an object is destroyed.

A assignment function

B copy constructor

C destructor

D constructor