Exercise: Object Oriented Programming Using Cpp

Questions for: Object Oriented Programming Using Cpp

The step-by-step instructions that solve a problem are called _____
A:
an algorithm
B:
a list
C:
a plan
D:
a sequential structure
Answer: A
No answer description is available. Let's discuss.
If you create an instantiation of a class template with an int, and then create a second instantiation with a double, then
A:
you must precede each function call with the word int or double
B:
once a function is used as one type, it becomes unavailable for use with the other type
C:
there is no difference in the procedure to call a member function
D:
you cannot perform this operation in C++
Answer: A
No answer description is available. Let's discuss.
A function that is called automatically each time an object is destroyed is a
A:
constructor
B:
destructor
C:
destroyer
D:
terminator
Answer: B
No answer description is available. Let's discuss.
When a child class function is called, the compiler looks first for a matching function name in the _____
A:
class of the object using the function name
B:
immediate ancestor class
C:
base class
D:
descendant class
Answer: A
No answer description is available. Let's discuss.
The generic type in a template function
A:
must be T
B:
can be T
C:
cannot be T for functions you create, but may be for C++'s built-in functions
D:
cannot be T
Answer: B
No answer description is available. Let's discuss.
Ad Slot (Above Pagination)
Quiz