Cpp Programming Quiz 211 – What will be the output of the following program?
Question: What will be the output of the following program? #include class BixBase { public: BixBase() { cout
Question: What will be the output of the following program? #include class BixBase { public: BixBase() { cout
Question: What will be the output of the following program? #include class BixBase { public: BixBase() { cout
Question: Can a class have virtual destructor? [A]. Yes [B]. No Answer: Option A
Question: Which of the following are NOT provided by the compiler by default? [A].Zero-argument Constructor [B].Destructor [C].Copy Constructor [D].Copy DestructorAnswer: Option D
Question: If the copy constructor receives its arguments by value, the copy constructor would [A].call one-argument constructor of the class [B].work without any problem [C].call itself recursively[D].call zero-argument constructor Answer: Option C
Question: How many default constructors per class are possible? [A].Only one [B].Two [C].Three [D].UnlimitedAnswer: Option A
Question: 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 Answer: Option C Explanation: No answer description available for this question.
Question: What will be the output of the following program? [A]. 3 [B].4 [C]. 5 [D]. Garbage-value Answer: Option B Explanation: No answer description available for this question.
Question: It is a __________ error to pass arguments to a destructor. [A]. logical [B].virtual [C]. syntax [D]. linker Answer: Option C Explanation: No answer description available for this question.
Question: Which of the following cannot be declared as virtual? [A]. Constructor [B].Destructor [C]. Data Members [D]. Both A and C Answer: Option D Explanation: No answer description available for this question.