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 ____ binding, the necessary code to call a specific function is generated by the compiler.
Free
(Multiple Choice)
4.8/5
(31)
Correct Answer:
A
The seqSearch function returns true if an item in the list equals the searchItem.
Free
(True/False)
4.9/5
(31)
Correct Answer:
True
Which of the following operations is allowed on pointer variables?
Free
(Multiple Choice)
4.7/5
(37)
Correct Answer:
C
Given the statement double *p;, the statement p++; will increment the value of p by ____ byte(s).
(Multiple Choice)
4.8/5
(39)
The ____ operator can be used to return the address of a private data member of a class.
(Multiple Choice)
4.9/5
(43)
A(n) ____________________ is a collection of distinct elements of the same type.
(Short Answer)
4.8/5
(36)
The ____________________ of a base class automatically makes the destructor of a derived class virtual.
(Short Answer)
4.9/5
(37)
Which of the following arithmetic operations is allowed on pointer variables?
(Multiple Choice)
4.7/5
(30)
The copy constructor automatically executes when, as a parameter, an object is passed by ____________________.
(Short Answer)
4.9/5
(45)
Consider the following declaration of a struct:The statement (*studentPtr).gpa = 2.5; is equivalent to ___________________ = 2.5;.


(Short Answer)
4.7/5
(40)
The statement int *p; is equivalent to int * p;, which is also equivalent to the statement ____________________.
(Short Answer)
4.7/5
(32)
Consider the following statements:In the function pointerParameters, the parameter p is a(n) ____________________ parameter.


(Short Answer)
4.8/5
(41)
A pointer variable is a variable whose content is a memory address.
(True/False)
4.9/5
(41)
The dereferencing operator is also known as the indirection operator and refers to the object to which its operand points.
(True/False)
4.8/5
(47)
Showing 1 - 20 of 44
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)