BPSC TRE – Constructors, Destructors, Inheritance & Polymorphism | Test 1

Questions 6-10 of 50

0% completed (0/50 answered)
Your score 0/50 0 answered
Correct 0 Incorrect 0 Unanswered 50 Accuracy 0%

Question 6

MCQ · Single Correct 1 mark

In C++11, what is the term for a constructor that invokes another constructor of the same class in its initialization list?

Answers for question 6

Question 7

MCQ · Single Correct 1 mark

Which constructor syntax in C++11 explicitly instructs the compiler to suppress the automatic generation of a default constructor?

Answers for question 7

Question 8

MCQ · Single Correct 1 mark

What type of C++11 constructor transfers ownership of dynamic resources using rvalue references (ClassName&&) without copying data?

Answers for question 8

Question 9

MCQ · Single Correct 1 mark

If a class explicitly defines a parameterized constructor but no default constructor, what happens when code attempts to execute 'ClassName obj;'?

Answers for question 9

Question 10

MCQ · Single Correct 1 mark

Can a C++ constructor be declared as 'virtual'?

Answers for question 10
Scroll to Top