Exam 12: Pointers, Classes, Virtual Functions, and Abstract Classes
Exam 1: An Overview of Computers and Programming Languages40 Questions
Exam 2: Basic Elements of C++50 Questions
Exam 3: Inputoutput40 Questions
Exam 4: Control Structures I Selection40 Questions
Exam 5: Control Structures Ii Repetition40 Questions
Exam 6: User-Defined Function41 Questions
Exam 7: Namespaces, the Class String, and User-Defined Simple Data Types40 Questions
Exam 8: Arrays40 Questions
Exam 9: Records Structs40 Questions
Exam 10: Classes and Data Abstraction43 Questions
Exam 11: Inheritance and Composition41 Questions
Exam 12: Pointers, Classes, Virtual Functions, and Abstract Classes44 Questions
Exam 13: Operator Overloading and Templates41 Questions
Exam 14: Exception Handling43 Questions
Exam 15: Recursion43 Questions
Exam 16: Linked Lists40 Questions
Exam 17: Stacks and Queue43 Questions
Exam 18: Searching and Sorting Algorithms40 Questions
Exam 19: Binary Trees43 Questions
Exam 20: Graph Algorithms48 Questions
Exam 21: Standard Template Library41 Questions
Select questions type
In C++, the dot operator has a lower precedence than the dereferencing operator.
(True/False)
4.8/5
(41)
A memory leak is an unused memory space that cannot be allocated.
(True/False)
4.8/5
(29)
Consider the following statement:ptrMemberVarType objectThree(objectOne); The values of the member variables of objectOne are being copied into the corresponding member variables of objectThree.This initialization is called the ____.
(Multiple Choice)
4.8/5
(39)
In C++, pointer variables are declared using the reserved word pointer.
(True/False)
4.8/5
(42)
An array created during the execution of a program is called a(n) ____ array.
(Multiple Choice)
4.9/5
(45)
The ____ constructor is executed when an object is declared and initialized by using the value of another object.
(Multiple Choice)
4.7/5
(38)
Consider the following statements:The code above is an example of a(n) ____________________ class definition.


(Short Answer)
4.8/5
(39)
In a ____ copy, two or more pointers of the same type point to the same memory.
(Multiple Choice)
5.0/5
(47)
Which of the following would be appropriate syntax for the heading of a copy constructor for a class called rulerType?
(Multiple Choice)
4.8/5
(41)
Which of the following can be used to initialize a pointer variable?
(Multiple Choice)
4.9/5
(36)
What is the value of x after the following statements execute? 

(Multiple Choice)
4.9/5
(47)
Given the declaration int *a;, the statement a = new int[50]; dynamically allocates an array of 50 components of the type ____.
(Multiple Choice)
4.9/5
(46)
Given the declaration
int *p;
The statement
p = new int[50];
dynamically allocates an array of 50 components of type int and p contains the base address of the array.
(True/False)
4.8/5
(35)
A class ____ automatically executes whenever a class object goes out of scope.
(Multiple Choice)
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.8/5
(40)
In C++, virtual functions are declared using the reserved word ____.
(Multiple Choice)
5.0/5
(38)
Showing 21 - 40 of 44
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)