Question
QUESTION 5 Class members specified as private are accessible only to member functions of the class and friends of the class. True False QUESTION 6
QUESTION 5
Class members specified as private are accessible only to member functions of the class and friends of the class.
True
False
QUESTION 6
The Catch handle of an exception:
A. Throw the exception
B. Process the exception
C. nothing
D. quit the program
E. None of the above
QUESTION 7
Select all that apply about Exceptions.
A. Indicate that something unexpected has occurred or been detected
B. Allow a program to deal with the program in a controlled manner
C. Can be used to assn a object of a class to another object of the same class
D. Can be as simple or complex as program design requires
E. Exceptions can be declared public, private or pretected
QUESTION 8
Static data members have class scope and can be declared public, private or protected.
True
False
QUESTION 9
A good reason for overloading an operator is to enable it to:
A. outperform its C language counterparts
B. work in its usual way, but with programmer-defined data types
C. operate on more operands than in its standard definition
D. operate on no operands
E. None of the above
QUESTION 10
A reason to overload the ____________ is to write classes that have array-like behaviors.
A. parentheses ( ) operator
B. curly braces { } operator
C. square brackets [ ] operator
D. colon : : operator
E. None of the above
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started