C++ programming: True/False questions Question 1 A constructor can be overloaded
ID: 3787651 • Letter: C
Question
C++ programming: True/False questions
Question 1 A constructor can be overloaded to initialize members of a class with different data types.
Question 2 Using a class template, you can define a generic stack for multiple data types.
Question 3 A template function uses a generic data type that is substituted with the actual data type.
Question 4 Abstraction means generalizing an object and hiding its detail.
Question5 Templates are used to design specific algorithms and classes and they work for only one data type.
Question 6 An array of objects can be used in the same way as an array of integers.
Question 7 Straight Selection sort finds the (next) smallest value at each pass and place it at the (next) beginning.
Explanation / Answer
1) True. You can define multiple constructors by changing the input arguements.
2) True. You can define a generic stack.
3) True. A temple function only uses a place holder data type.
4) False. Abstraction does not mean generalizing an object, it means giving out only essential information.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.