C++ Programming Questions


Q.  Public data members and member functions of the class are accessible ONLY to the member functions of that class.

a. True
b. False


ANSWER: See Answer
 
No explanation is available for this question!
MCQs:  Default values for a function are specified when ____ .
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  Can member functions of one class be friend functions of another class?
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  In case of binary operator overloading with member function, which of following statement should be taken into consideration?
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  Can constructors be overloaded?
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  Assume class TEST. Which of the following statements is/are responsible to invoke copy constructor?
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  When overloading unary operators using Friend function,it requires_____ argument/s.
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  In CPP program, Can we declare and define a user defined function inside a struct as we do in a class ?
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  ____________ refers to the act of representing only essential features without including the background details.
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  Runtime polymorphism is achieved only when a virtual function is accessed through a pointer to the base class.
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  Find the wrong statement/s about Abstract Class.
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  Assigning one or more function body to the same name is called ____________ .
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  Function overloading can also be achieved if two or more functions differ only in their return types.
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  In nested try block, if inner catch handler gets executed, then _____________ .
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  A function can be declared as friend maximum only in two classes.
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  Which of the following statements are not true about destructor? 1. It is invoked when object goes out of the scope 2. Like constructor, it can also have parameters 3. It can be virtual 4. It can be declared in private section 5. It bears same name as that of the class and precedes Lambda sign.
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  When a child class inherits traits from more than one parent class, this type of inheritance is called _______________ inheritance.
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  In case of inheritance where both base and derived class are having constructor and destructor, then which if the following are true ? 1. Constructors are executed in their order of derivation 2. Constructors are executed in reverse order of derivation 3. Destructors are executed in their order of derivation 4. Destructors are executed in reverse order of derivation
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  __________________ is the OOP feature and mechanism that binds together code and the data it manipulates, and keep both safe from outside world.
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  Which of the followings is/are not keyword/s in CPP? 1. asm 2. boolean 3. mutable 4. export 5. constant_cast
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  We can create objects of the abstract class.
Category: Computer Science MCQs,   Published by: teswesm