Computer Science - Object Oriented Programming Using C++

1. 

If no constructors can specified for a derived class, objects of the derived class will use the constructors in the base class

A. True
B. False

Answer: Option A

Explanation:

No answer description available for this question. Let us discuss.

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:

No answer description available for this question. Let us discuss.

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:

No answer description available for this question. Let us discuss.

4. 

The number 5.5e3 is a _____ constant

A. character literal
B. named literal
C. numeric literal
D. string literal

Answer: Option C

Explanation:

No answer description available for this question. Let us discuss.

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:

No answer description available for this question. Let us discuss.

1 2 3 4 5 6 7 8 9 10 Next »