Computer Science - Object Oriented Programming Using C++
Exercise :: Object Oriented Programming Using C++ - Section 5
1. |
If no constructors can specified for a derived class, objects of the derived class will use the constructors in the base class |
Answer: Option A
Explanation:
|
2. |
The get() function returns _____ |
A. |
a character | B. |
void | C. |
a reference to the object that invoked it | D. |
a copy of the object that invoked it |
Answer: Option C
Explanation:
|
3. |
The most efficient data type for a variable that the number 20000 is the _____ data type |
A. |
Character | B. |
Double | C. |
Float | D. |
Long Integer | E. |
Short Integer |
Answer: Option E
Explanation:
|
4. |
The number 5.5e3 is a _____ constant |
A. |
character literal | B. |
named literal | C. |
numeric literal | D. |
string literal |
Answer: Option C
Explanation:
|
5. |
The compiler determines the type used in a template function via ___________ |
A. |
the name of the function | B. |
the first variable declared within the function | C. |
the type of the argument passed to the function | D. |
the type of the value returned from the function |
Answer: Option C
Explanation:
|