Exam 12: Pointers, Classes, Virtual Functions, Abstract Classes, and Lists
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
In a ____ copy,two or more pointers of the same type point to the same memory.
(Multiple Choice)
4.8/5
(33)
The ____________________ of a list is the number of elements in the list.
(Short Answer)
5.0/5
(28)
The ____ constructor is executed when an object is declared and initialized by using the value of another object.
(Multiple Choice)
4.9/5
(35)
A class ____ automatically executes whenever a class object goes out of scope.
(Multiple Choice)
4.9/5
(29)
The binding of virtual functions occurs at program ____________________ time.
(Short Answer)
4.7/5
(44)
Consider the following statements:
class shape
{
public:
virtual void draw()= 0;
virtual void move(double x,double y)= 0;
.
.
.
};
The code above is an example of a(n)____________________ class definition.
(Short Answer)
4.7/5
(33)
The statement that declares board to be an array of six pointers wherein each pointer is of type int is: int ____________________;
(Short Answer)
4.7/5
(47)
What is the output of the following statements?
int x = 33;
int *q;
q = &x;
cout << *q << endl;
(Multiple Choice)
4.9/5
(35)
In ____ binding,the necessary code to call a specific function is generated by the compiler.
(Multiple Choice)
4.9/5
(39)
Showing 41 - 50 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)