C++ Programming Questions


Q.  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

a. only 3 ,4
b. only 1,3,5
c. 2,4,5
d. Only 2,3


ANSWER: See Answer
 
No explanation is available for this question!
MCQs:  A try block can be nested under another try block.
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  In nested try blocks, there is no need to specify catch handler for inner try block. Outer catch handler is sufficient for the program.
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  We can prevent a function from throwing any exceptions.
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  Functions called from within a try block may also throw exception.
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  The explicit keyword is an optional decoration for the constructors that takes exactly_____argument.
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  A class can contain objects of other classes and this phenomenon is called_________ .
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  Can we alter/modify the values of data members of a class inside const member function?
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  If a class contains pure virtual function, then it is termed as____________________ .
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  If inner catch handler is not able to handle the exception then__________ .
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  Generic catch handler is represented by ______________ .
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  Which one is suitable syntax for function template?
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  It is not possible to combine two or more file opening mode in open () method.
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  Private members of the class are not inheritable.
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  While overloading binary operators using member function, it requires ___ argument/s.
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  If abstract class is inherited by derived class, then_______________ .
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  By default, all the files are opened in ___________mode .
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  Generic catch handler must be placed at the end of all the catch handlers.
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  An exception can be of only built-In type.
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  The CPP compiler supports automatic type conversions for the user defined datatypes.
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  Can a class be declared/defined inside another class ?
Category: Computer Science MCQs,   Published by: teswesm