Don’t worry, unlock all articles / blogs on PrepInsta by just simply logging in on our website
Type atleast 3 characters
Popular Searches
Trending Pages
Notifications Mark All Read
No New notification
Cocubes Menu9>
PREPINSTA PRIME
Get Hiring Updates right in your inbox from PrepInsta
Question 1
Compile-time error.
Preprocessing error.
Runtime error.
Runtime exception.
Good Job!
Oops!
Currently there is no PrepInsta Explanation. Did you know?
You can also submit your own version of explanations under user explanation section and also view other submitted explanations by other users.
Please login to submit your explanation
Login to see your performance analytics by signing in
Start
Question 2
A destructor has the same name as the class in which it is present.
A destructor has a different name than the class in which it is present.
A destructor always returns an integer.
A destructor can be overloaded.
Question 3
default constructor
copy constructor
Both A and B
None of these
Copy Constructor always required a reference of the same object. So if it is not having any parameter then it cant be copy constructor. So it is the default constructor that bears the values.
Question 4
It is used to provide multiple inheritances.
It is used to avoid multiple copies of the base class in derived class.
It is used to allow multiple copies of the base class in a derived class.
It allows private members of the base class to be inherited in the derived class.
Virtual base classes are used in virtual inheritance in a way of preventing multiple “instances” of a given class appearing in an inheritance hierarchy when using multiple inheritances.
Question 5
The trailing argument will be the default argument.
The first argument will be the default argument.
The middle argument will be the default argument.
All the argument will be the default argument.
Question 6
int Sum(int a, int b = 2, int c = 3);
int Sum(int a = 5, int b);
int Sum(int a = 0, int b, int c = 3);
Both B and C are incorrect.
All are correct.
Question 7
The default value for an argument can be a global constant.
The default arguments are given in the function prototype.
The compiler uses the prototype information to build a call, not the function definition.
The default arguments are given in the function prototype and should be repeated in the function definition.
Question 8
10
20
30
40
Compilation fails
Question 9
21
22
31
32
Question 10
30 10 20
Garbage 10 20
40 50 20
20 40 50
40 Garbage Garbage
Please login to report