Computer Science - Object Oriented Programming Using C++

16.
In a class specifier, data or functions designated private are accessible
to any function in the program
only if you know the password
to member functions of that class
only to public members of the class
Answer: Option
Explanation:
No answer description is available. Let's discuss.

17.
When a function includes a throw statement for errors, the call to the potentially offending function should be placed within a _____ block
throw
try
catch
scope
Answer: Option
Explanation:
No answer description is available. Let's discuss.

18.
The scope resolution operator is
a comma
a semicolon
a colon
two colons
Answer: Option
Explanation:
No answer description is available. Let's discuss.

19.
"C++" is a _____ constant
character literal
named literal
numeric literal
string literal
Answer: Option
Explanation:
No answer description is available. Let's discuss.

20.
In a C++ program, which of the following can be thrown?
scalar variables
programmer-defined objects
both (a) and (b)
neither (a) nor (b)
Answer: Option
Explanation:
No answer description is available. Let's discuss.