Exam 13: Overloading and Templates
Exam 1: An Overview of Computers and Programming Languages52 Questions
Exam 2: Basic Elements of C++76 Questions
Exam 3: Inputoutput33 Questions
Exam 4: Control Structures I Selection24 Questions
Exam 5: Control Structures II Repetition25 Questions
Exam 6: User-Defined Functions47 Questions
Exam 7: User-Defined Simple Data Types, Namespaces, and the String Type12 Questions
Exam 8: Arrays and Strings33 Questions
Exam 9: Records Structs10 Questions
Exam 10: Classes and Data Abstraction38 Questions
Exam 11: Inheritance and Composition15 Questions
Exam 12: Pointers, Classes, Virtual Functions, Abstract Classes, and Lists40 Questions
Exam 13: Overloading and Templates21 Questions
Exam 14: Exception Handling13 Questions
Exam 15: Recursion18 Questions
Exam 16: Linked Lists17 Questions
Exam 17: Stacks and Queues34 Questions
Exam 18: Searching and Sorting Algorithms28 Questions
Exam 19: Binary Trees26 Questions
Exam 20: Graphs53 Questions
Exam 21: Standard Template Library STL28 Questions
Select questions type
What does these terms refer to:
- Operator overloading:
Free
(Short Answer)
4.8/5
(38)
Correct Answer:
allows the programmer to extend the definitions of most of the standard operators so that operators-such as relational operators, arithmetic operators, the insertion operator for data output, and the extraction operator for data input-can be used to manipulate class objects
What does these terms refer to:
- Template:
Free
(Short Answer)
4.9/5
(35)
Correct Answer:
a C++ feature that enables the programmer to write generic code for functions and classes
The stream extraction and stream insertion operators must be overloaded as member functions.
Free
(True/False)
4.7/5
(40)
Correct Answer:
True
The function heading for an operator function uses the reserved word ____________________.
(Short Answer)
4.9/5
(41)
C++ simplifies the process of overloading functions by providing ____________________.
(Short Answer)
4.8/5
(49)
The associativity of an operator can be modified in an overloaded operator function.
(True/False)
4.8/5
(29)
Which operator functions cannot be overloaded as friend functions?
(Short Answer)
4.7/5
(44)
Every object maintains a hidden pointer to itself called the ____________________ pointer.
(Short Answer)
4.7/5
(34)
A(n) ____________________ function is a nonmember function that has access to all the public and private variables of a class.
(Short Answer)
4.7/5
(29)
Including multiple constructors of a class is an example of function overloading.
(True/False)
4.8/5
(40)
The body of an overloaded assignment operator should include self-assignments.
(True/False)
4.9/5
(43)
A template instantiation can only be created with a built-in type.
(True/False)
4.8/5
(29)
Showing 1 - 20 of 21
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)