C++ Programming Questions


Q.  Members of the class can be declared with auto, extern or register storage classes.

a. True
b. False


ANSWER: See Answer
 
No explanation is available for this question!
MCQs:  Inline functions may not work ______ . 1. If function contain static variables. 2. If function contain global and register variables. 3. If function returning value consists looping construct(i.e. for, while). 4. If inline functions are recursive. 5. If function contains const value.
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  Which of the followings is/are not false about friend function ? 1. It can be called / invoked with class object. 2. It has objects as arguments. 3. It can have built-in types as arguments. 4. It must declared only in public part of a class. 5. It does not have this pointer as an argument.
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  Default return type of functions in CPP is ____ .
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  Default values for a function are need to be specified from left to right only.
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  During a class inheritance in CPP, if the visibility mode or mode of derivation is not provided, then by default visibility mode is ___________.
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  The derivation of Child class from Base class is indicated by ____ symbol.
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  If we have object from fstream class, then what is the default mode of opening the file?
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  __________ is return type of is_open() function.
Category: Computer Science MCQs,   Published by: teswesm
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: teswesm
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: teswesm
MCQs:  A Constructor that does not have any parameters is called____________ Constructor.
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  If we have object from ofstream class, then default mode of opening the file is _____ .
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  _______________ is a member function that is declared within a base class and redefined by derived class.
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  Syntax for Pure Virtual Function is ______________ .
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  Logical expressions produce ____________ type results.
Category: Computer Science MCQs,   Published by: teswesm
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: teswesm
MCQs:  When a base class is privately inherited by the derived class, then_____________ .
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  What is the difference between protected and private access specifiers in inheritance?
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  A friend function does not have 'this' pointer associated with it.
Category: Computer Science MCQs,   Published by: teswesm
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: teswesm