Which of the
following is a predefined object in C++ and used to insert to the standard
error output?
a. std::err
b. std::error
c. std::cerror
d. std::cerr
e. std::cin
f. std::clog
If a matching catch
handler (or ellipsis catch handler) cannot be found for the current exception,
then the following predefined runtime function is called ______.
a. abort
b. set_terminate
c. terminate
d. close
Which of the
following statements regarding functions are false?
a. Functions can be overloaded
b. Functions can return
the type void
c. Inline functions are
expanded during compile time to avoid invocation overhead
d. You can create arrays of
functions
e. You can pass values to
functions by reference arguments
f. You can return values
from functions by reference arguments
g. A function can return a
pointer
What access
specifier allows only the class or a derived class to access a data member
a. private
b. protected
c. default
d. virtual
e. public
Consider two
classes A and B: