Exam 13: Overloading and Templates
Exam 1: An Overview of Computers and Programming Languages50 Questions
Exam 2: Basic Elements of C++50 Questions
Exam 3: Input/Output50 Questions
Exam 4: Control Structures I (Selection)50 Questions
Exam 5: Control Structures II (Repetition)50 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 (structs)50 Questions
Exam 10: Classes and Data Abstraction50 Questions
Exam 11: Inheritance and Composition50 Questions
Exam 12: Pointers, Classes, Virtual Functions, Abstract Classes, and Lists50 Questions
Exam 13: Overloading and Templates50 Questions
Exam 14: Exception Handling50 Questions
Exam 15: Recursion50 Questions
Exam 16: Linked Lists50 Questions
Exam 17: Stacks and Queues50 Questions
Exam 18: Searching and Sorting Algorithms50 Questions
Exam 19: Binary Trees50 Questions
Exam 20: Graphs50 Questions
Exam 21: Standard Template Library (STL)50 Questions
Select questions type
The general syntax of the function prototype to overload the stream extraction operator >> for a class is ____.
(Multiple Choice)
4.9/5
(44)
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.7/5
(40)
The ____________________ operator causes a member-wise copy of the member variables of the class.
(Short Answer)
4.9/5
(45)
The ____________________ operator function as a member of a class has only one parameter; as a nonmember of a class,it has two parameters.
(Short Answer)
4.8/5
(43)
Which of the following is the general syntax of the function prototype to overload the pre-increment operator as a nonmember function?
(Multiple Choice)
4.9/5
(39)
The operators that cannot be overloaded are .,.*,::,?:,and ____________________.
(Short Answer)
4.9/5
(36)
A(n)____ function is a nonmember function that has access to all members of the class.
(Multiple Choice)
4.8/5
(33)
When the post-increment operator is overloaded as a nonmember function of the class,the operator function has ____ parameter(s).
(Multiple Choice)
4.9/5
(41)
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.
(True/False)
4.9/5
(40)
The declaration of a friend function cannot be placed within the private part of the class.
(True/False)
4.9/5
(37)
To overload a(n)____________________ operator for a class,if the operator function is a nonmember,it has one parameter.
(Short Answer)
4.7/5
(43)
Which of the following function prototypes overloads the != operator for the class rectangleType?
(Multiple Choice)
4.9/5
(30)
Most operator functions can either be member functions or nonmember functions of a class.
(True/False)
4.7/5
(39)
When an object invokes a member function,the member function references the pointer ____ of the object.
(Multiple Choice)
4.9/5
(31)
The name of the function to overload the operator <= is ____.
(Multiple Choice)
4.9/5
(37)
The ____________________ members of a class are local to the class and,therefore,cannot be accessed outside of the class.
(Short Answer)
4.8/5
(31)
Showing 21 - 40 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)