Answer the following questions true (T) or false (F)
1. A class may not have another class type object as a member.
2. Any use of the keyword const is a promise to the compiler, and a request to the compiler to enforce the promise. What promises?
1. False
Explanation: A class type may be treated exactly like any other type. An int can be a member of a class, so can another class be a type of a member of another class.
2. True
Explanation: We have seen several uses of const. A const call-by-reference parameter promises not to write code that could change the parameter, hence not to write code that could change the argument.. A const identifier definition promises not to write code that could change the identifier. Finally, a const member function.promises not to write code in the member function that could change the state of the calling object.
You might also like to view...
Let a and b be valid boolean expressions. Which of the following best describes the result of the expression a || b?
a) It will evaluate to true if a evaluates to true and b evaluates to true. It will evaluate to false otherwise. b) It will evaluate to false if a evaluates to false and b evaluates to false. It will evaluate to true otherwise. c) It will evaluate to true if a evaluates to false and b evaluates to false. It will evaluate to true otherwise. d) It will evaluate to true if a evaluates to false or b evaluates to false. It will evaluate to true otherwise. e) None of the above statements correctly describes the evaluation of the expression.
____________________ is designed from the ground up to be a complete VoIP or video presentation connection and session controller; in essence, taking over all the work from VoIP the SIP protocol used to do and all the work from video presentation done by H.323.
Fill in the blank(s) with the appropriate word(s).
The application design tool that is a visual representation of the logic in a function within a program is the ____.
A. Flowchart B. Detail design C. Pseudocode D. Structure chart E. Waterfall model
Which of the following is not an important method available for application file management?
a. Context.getFilesdir() b. Context.openFileInput() c. Context.getDirCacheInput() d. Context.getFileStreamPath()