Computer Science - Object Oriented Programming Using C++
|
|
|
|
Exercise"We cannot solve our problems with the same thinking we used when we created them."
- Albert Einstein
|
| 1. |
Programmer-defined functions can be |
| A. |
value-returning functions only | | B. |
void functions only | | C. |
either value-returning or void functions |
Answer: Option A
Explanation:
No answer description available for this question. Let us discuss.
|
| 2. |
A class D can be derived from a class C, which is derived from a class B, which is derived from a class A |
Answer: Option B
Explanation:
No answer description available for this question. Let us discuss.
|
| 3. |
To use the strcpy function, you must include the _____ header file in your program |
| A. |
assign.h | B. |
copy.h | | C. |
string.h | D. |
strcopy.h | | E. |
strcpy.h |
Answer: Option A
Explanation:
No answer description available for this question. Let us discuss.
|
| 4. |
The number of the relational operators in the C language is |
Answer: Option D
Explanation:
No answer description available for this question. Let us discuss.
|
| 5. |
Which of the following tells C++ to display numbers with two decimal places? |
| A. |
setdecimal(2) | B. |
setiosflags(2) | | C. |
setiosflags(2.00) | D. |
setprecision(2) |
Answer: Option D
Explanation:
No answer description available for this question. Let us discuss.
|
|
|