OOPS Constructors MCQ Quiz Questions and Answers - 1

Question: 1

The constructors defined by the computers in the absence of user defined constructor is called as ____

(A) Non-parameterized

(B) Default

(C) Compiler generated

(D) All of these

Ans: C

Compiler generated

Question: 2

How many destructors a class can have?

(A) 1

(B) 2

(C) 3

(D) 4

Ans: A

1

Question: 3

Constructor should be declared under the scope ___

(A) Public

(B) Private

(C) Protected

(D) Pointer

Ans: A

Public

Question: 4

Which of the following cannot have arguments?

(A) Operator overloading

(B) Function overloading

(C) Constructor

(D) Destructor

Ans: D

Destructor

Question: 5

Which of the following do not return any value ____

(A) Constructor and destructor

(B) Friend functions

(C) Inline functions

(D) Member functions

Ans: A

Constructor and destructor

Related Questions