OOPS Constructors MCQ Quiz Questions and Answers - 2
Question: 6
When an instance of a class comes into scope, the function that executed is ____
(A) Destructor
(B) Constructor
(C) Inline
(D) Friend
Ans: B
Constructor
Question: 7
The destructor is prefixed by the character ___
(A) ~
(B) %
(C) #
(D) &
Ans: A
~
Question: 8
Which one of the following is automatically executed when an object is created?
(A) Constructor
(B) Destructor
(C) Inline function
(D) Member function
Ans: A
Constructor
Question: 9
The name of constructor must be ___
(A) Same as object name
(B) Same as one of the member function
(C) Same as class name
(D) None of the given
Ans: C
Same as class name
Question: 10
When an object is passed by reference to constructor, the constructor that is executed is _____
(A) Inline
(B) Default
(C) Static
(D) Copy
Ans: D
Copy
Related Questions
Recent Articles
Signals and Systems Quiz Questions and Answers Pdf More
Signals and Systems MCQ Questions and Answers Pdf More
Electrical Power Sources Quiz Questions & Answers Pdf More
Electromagnetic Field Theory Question Bank 2024-2025 More
Power Semiconductor Device and Integrated Circuits Questions More
Strength of Materials Questions and Answers Pdf More
April-25-2024
| Meritnotes
Signals and Systems MCQ Questions and Answers Pdf More
April-24-2024
| Meritnotes
Electrical Power Sources Quiz Questions & Answers Pdf More
April-24-2024
| Meritnotes
Electromagnetic Field Theory Question Bank 2024-2025 More
April-23-2024
| Meritnotes
Power Semiconductor Device and Integrated Circuits Questions More
April-22-2024
| Meritnotes
Strength of Materials Questions and Answers Pdf More
April-21-2024
| Meritnotes
Trending Posts
Oracle 11g - 12c Sql Loader Interview Questions and Answers Pdf More
Sports Quiz Questions and Answers More
200+ World Most Important Currency, Countries & Capitals Pdf More
1000+ Last 15 Years GATE Papers with Solutions Pdf More
100+ TNPSC Group 2 Exam Previous Year Question Paper with Answers More
7000+ Hibret Bank Aptitude Questions and Answers Pdf More
August-28-2019
| Meritnotes
Sports Quiz Questions and Answers More
August-28-2019
| Meritnotes
200+ World Most Important Currency, Countries & Capitals Pdf More
February-18-2020
| Meritnotes
1000+ Last 15 Years GATE Papers with Solutions Pdf More
March-06-2024
| Meritnotes
100+ TNPSC Group 2 Exam Previous Year Question Paper with Answers More
March-28-2022
| Meritnotes
7000+ Hibret Bank Aptitude Questions and Answers Pdf More
September-04-2023
| Meritnotes