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 Classes43 Questions
Exam 13: Overloading and Templates41 Questions
Exam 14: Exception Handling42 Questions
Exam 15: Recursion41 Questions
Exam 16: Searching and Sorting46 Questions
Exam 17: Linked Lists41 Questions
Exam 18: Stacks and Queues42 Questions
Select questions type
What is the value of x after the following statements execute? int x = 25;
Int *p;
P = &x;
*p = 46;
(Multiple Choice)
4.9/5
(41)
If p is a pointer variable, the statement p = p + 1; is valid in C++.
(True/False)
4.9/5
(33)
A pointer variable is a variable whose content is a memory address.
(True/False)
4.8/5
(35)
Consider the following statements:
The code above is an example of a(n) ____________________ class definition.

(Short Answer)
5.0/5
(42)
Given the statement double *p;, the statement p++; will increment the value of p by ____ byte(s).
(Multiple Choice)
4.8/5
(45)
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.9/5
(32)
Which of the following arithmetic operations is allowed on pointer variables?
(Multiple Choice)
4.8/5
(39)
An array created during the execution of a program is called a(n) ____ array.
(Multiple Choice)
5.0/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.9/5
(39)
Consider the following statements:
In the function pointerParameters, the parameter q is a(n) ____________________ parameter.


(Short Answer)
4.7/5
(38)
The binding of virtual functions occurs at program ____________________ time.
(Short Answer)
4.9/5
(26)
In C++, you declare a pointer variable by using the ____ symbol.
(Multiple Choice)
4.7/5
(34)
In C++, virtual functions are declared using the reserved word ____.
(Multiple Choice)
4.9/5
(34)
The ____ constructor is executed when an object is declared and initialized by using the value of another object.
(Multiple Choice)
5.0/5
(39)
The C++ operator ____ is used to destroy dynamic variables.
(Multiple Choice)
4.8/5
(39)
In C++, the dot operator has a lower precedence than the dereferencing operator.
(True/False)
4.8/5
(39)
Showing 21 - 40 of 43
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)