Computer Science - Object Oriented Programming Using C++
|
|
|
|
Exercise"Everyone is wise until he speaks."
- (Proverb)
|
| 1. |
Variables that are declared in a block are known as _____ variables to that block |
| A. |
confined | B. |
local | | C. |
global | D. |
immediate |
Answer: Option E
Explanation:
No answer description available for this question. Let us discuss.
|
| 2. |
The pow and sqrt functions return a(n) _____ type number |
Answer: Option B
Explanation:
No answer description available for this question. Let us discuss.
|
| 3. |
Declaring variables is advantageous because it |
| A. |
avoids errors from misspelled variable names {b) helps the linker work efficiently | | B. |
simplifies the writing of very short programs | | C. |
All of the above | | D. |
None of the above |
Answer: Option D
Explanation:
No answer description available for this question. Let us discuss.
|
| 4. |
The generic name used for unexpected errors that occur during the execution of a program is |
| A. |
infractions | B. |
exceptions | | C. |
deviations | D. |
anomalies |
Answer: Option C
Explanation:
No answer description available for this question. Let us discuss.
|
| 5. |
You add the desired type to a specific template class instantiation by placing the type's name ______ |
| A. |
between angle brackets | | B. |
in parentheses | | C. |
on a line by itself | | D. |
immediately prior to the class name |
Answer: Option B
Explanation:
No answer description available for this question. Let us discuss.
|
|
|