C++ Programming Questions


Q.  Which of the following are member dereferencing operators in CPP? 1. * 2. :: 3. ->* 4. ::* 5. ->

a. Only 1, 3, 4
b. Only 1 and 5
c. Only 3 and 4
d. Only 3,4,5


ANSWER: See Answer
 
No explanation is available for this question!
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
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