C++ Programming Questions

Q.  class X, class Y and class Z are derived from class BASE. This is ______ inheritance.

a. Multiple
b. Multilevel
c. Hierarchical
d. Single


ANSWER: See Answer
 
No explanation is available for this question!
MCQs:  Public data members and member functions of the class are accessible ONLY to the member functions of that class.
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  Only functions of the class can access the data of the class and they(functions) provides the interface between data, objects and the program. This kind isolation of the data from direct access by the program is called _______________ .
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  A Constructor that does not have any parameters is called____________ Constructor.
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  If we have object from ofstream class, then default mode of opening the file is _____ .
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  _______________ is a member function that is declared within a base class and redefined by derived class.
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  Syntax for Pure Virtual Function is ______________ .
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  Logical expressions produce ____________ type results.
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  We can initialize a value of static variable of a class only when its object is created. No other initialization is permitted.
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  When a base class is privately inherited by the derived class, then_____________ .
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  What is the difference between protected and private access specifiers in inheritance?
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  A friend function does not have 'this' pointer associated with it.
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  In nested try blocks, if both inner and outer catch handlers are not able to handle the exception, then ______________ .
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  Throwing an unhandled exception causes standard library function then _________ to be invoked.
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  In CPP, it is mandatory and must to initialize const variables.
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  When a class is defined inside any function or block, it is called ___________ .
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  Which of the followings are false statements about Local class? 1. A local class type name can only be used in the enclosing function 2. All the methods of Local classes must be defined inside the class only 3. A Local class can contain static data members. 4. A Local class may contain static functions. 5. Non-static variables of the enclosing function are not accessible inside local classes. 6. Local classes cannot access global types, variables and functions.
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  Due to ios::trunc mode, the file is truncated to zero length.
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  A const object of a class can call non-const member function of the class.
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  If an argument to a function is declared as const, then _______ .
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  Return type of uncaught_exception() is ________________ .
Category: Computer Science MCQs,   Published by: T-Code Scripts