C++ Programming Questions

Q.  Assume class TEST. Which of the following statements is/are responsible to invoke copy constructor?

a. TEST T2(T1)
b. TEST T4 = T1
c. T2 = T1
d. both a and b
e. All of these


ANSWER: See Answer
 
No explanation is available for this question!
MCQs:  Using friend operator function, following perfect set of operators may not be overloaded.
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  An operator function is created using _____________ keyword.
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  Classes in CPP are________ .
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  Can we define our exceptions in CPP?
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  The code of statements which may cause abnormal termination of the program should be written under_________ block.
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  Object based language differs from object oriented language as it does not support features _____ . 1. Encapsulation 2. Inheritance 3. Dynamic Binding 4. Abstraction 5. Polymorphism
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  When a virtual function is redefined by the derived class, it is called___________.
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  In any ways, Non-member function cannot have access to the private data of the class.
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  In CPP, dynamic memory allocation is done using ______________ operator.
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  Can we allocate memory for the objects dynamically in CPP?
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  If the derived class is struct, then default visibility mode is _______ .
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  Which of the following manipulator is used for the representing octal equivalent of a given decimal number?
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  Which of the following is not a casting operator in CPP?
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  ___________ header file is used for manipulators.
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  While redefining a virtual function in the derived class, if its prototype is changed then ___________________ .
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  const member function does not allow to modify/alter value of any data member of the class.
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  In a program, If there exists a function template with two parameters and normal function say void add(int , int), so add(3,4) will _____________________ .
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  Can struct be used as Base class for inheritance ?
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  In case of inheritance where both base and derived class are having constructors, when an object of derived class is created then___________ .
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  Which of the following is not a file opening mode ____ .
Category: Computer Science MCQs,   Published by: T-Code Scripts