Exam 13: Overloading and Templates
Exam 1: An Overview of Computers and Programming Languages50 Questions
Exam 2: Basic Elements of C50 Questions
Exam 3: Inputoutput50 Questions
Exam 4: Control Structures I Selection50 Questions
Exam 5: Control Structures II Repetition50 Questions
Exam 6: User-Defined Functions50 Questions
Exam 7: User-Defined Simple Data Types, Namespaces, and the String Type50 Questions
Exam 8: Arrays and Strings50 Questions
Exam 9: Records Structs50 Questions
Exam 10: Classes and Data Abstraction49 Questions
Exam 11: Inheritance and Composition50 Questions
Exam 12: Pointers, Classes, Virtual Functions, and Abstract Classes50 Questions
Exam 13: Overloading and Templates50 Questions
Exam 14: Exception Handling50 Questions
Exam 15: Recursion50 Questions
Exam 16: Searching, Sorting and the Vector Type50 Questions
Exam 17: Linked Lists50 Questions
Exam 18: Stacks and Queues50 Questions
Select questions type
The only built-in operations on classes are assignment (=) and ____________________.
Free
(Short Answer)
4.8/5
(44)
Correct Answer:
member selection
A(n) ____________________ constructor converts its argument to an object of the constructor's class.
Free
(Short Answer)
4.8/5
(35)
Correct Answer:
conversion
When writing the definition of a friend function, the name of the class and the scope resolution operator precede the name of the friend function in the function heading.
Free
(True/False)
4.8/5
(29)
Correct Answer:
False
The ____________________ operator causes a member-wise copy of the member variables of the class.
(Short Answer)
4.7/5
(29)
The general form of the functions to overload the binary operators as member functions of a class is returnType operator#(____ className&) const;.
(Multiple Choice)
4.8/5
(33)
Which of the following is the syntax to declare the operator function operator[] as a member function of a class for nonconstant arrays?
(Multiple Choice)
4.9/5
(31)
When the post-increment operator is overloaded as a nonmember function of the class, the operator function has ____ parameter(s).
(Multiple Choice)
5.0/5
(37)
The return type of the function to overload the operator >> must be a reference to a(n) ____ object.
(Multiple Choice)
4.8/5
(44)
When an object invokes a member function, the member function references the pointer ____ of the object.
(Multiple Choice)
4.8/5
(32)
Any function that overloads an operator is called a(n) ____________________ function.
(Short Answer)
4.9/5
(38)
A friend function does not have access to the private data members of the class.
(True/False)
4.9/5
(41)
Using a class template, you can write a single code segment for a set of related ____.
(Multiple Choice)
4.8/5
(34)
The name of the function to overload the operator <= is ____.
(Multiple Choice)
4.8/5
(36)
If you overload the binary arithmetic operator + as a member function, how many objects must be passed as parameters?
(Multiple Choice)
4.9/5
(38)
A conversion constructor is a(n) ____________________-parameter function.
(Short Answer)
4.8/5
(29)
The declaration of a friend function cannot be placed within the private part of the class.
(True/False)
4.9/5
(37)
Showing 1 - 20 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)