Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

QUESTION 5 Class members specified as private are accessible only to member func

ID: 3869082 • Letter: Q

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

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

Explanation / Answer

QUESTION 5
Class members specified as private are accessible only to member functions of the class and friends of the class.

Answer: True

QUESTION 6
The Catch handle of an exception:
Answer: E. None of the above

QUESTION 7
Select all that apply about Exceptions.
Answer:
A. Indicate that something unexpected has occurred or been detected
B. Allow a program to deal with the program in a controlled manner

QUESTION 8
Static data members have class scope and can be declared public, private or protected.
Answer: True

QUESTION 9
A good reason for overloading an operator is to enable it to:
Answer: B. work in its usual way, but with programmer-defined data types

QUESTION 10
A reason to overload the ____________ is to write classes that have array-like behaviors.
Answer: C. square brackets [ ] operator

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote