C++ Programming Questions


Q.  Assigning one or more function body to the same name is called ____________ .

a. Function Overriding
b. Function Overloading
c. Both a and b
d. None of the above


ANSWER: See Answer
 
No explanation is available for this question!
MCQs:  When a virtual function is redefined by the derived class, it is called___________.
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  In any ways, Non-member function cannot have access to the private data of the class.
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  In CPP, dynamic memory allocation is done using ______________ operator.
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  Can we allocate memory for the objects dynamically in CPP?
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  If the derived class is struct, then default visibility mode is _______ .
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  Which of the following manipulator is used for the representing octal equivalent of a given decimal number?
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  Which of the following is not a casting operator in CPP?
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  ___________ header file is used for manipulators.
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  While redefining a virtual function in the derived class, if its prototype is changed then ___________________ .
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  const member function does not allow to modify/alter value of any data member of the class.
Category: Computer Science MCQs,   Published by: teswesm
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: teswesm
MCQs:  Can struct be used as Base class for inheritance ?
Category: Computer Science MCQs,   Published by: teswesm
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: teswesm
MCQs:  Which of the following is not a file opening mode ____ .
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  Attempting to throw an exception that is not supported by a function call results in calling _____________ library function.
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  How can we restrict a function to throw certain exceptions?
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  Is it possible to define a constructor with default arguments?
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  The purpose of explicit keyword is to tell the compiler that a certain constructor may not be used to implicitly cast an expression to its class type.
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  Scope resolution operator is used______ .
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  In case of operator overloading, operator function must be ______ . 1. Static member functions 2. Non- static member functions 3. Friend Functions
Category: Computer Science MCQs,   Published by: teswesm