Deck 12: Pointers, Classes, Virtual Functions, Abstract Classes, and Lists
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/40
Play
Full screen (f)
Deck 12: Pointers, Classes, Virtual Functions, Abstract Classes, and Lists
1
What is the general syntax to declare a pointer variable?
dataType *identifier;
2
The value of a pointer variable is always a(n) ____________________.
memory address
3
The address of operator is a binary operator.
False
4
There is no name associated with pointer data types.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
5
What is the purpose of the member access operator arrow?
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
6
Write an equivalent statement to the following: studentPtr->gpa = 3.9;
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
7
Variables that are created during program execution are called ____________________ variables.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
8
Any integer can be assigned to a pointer variable.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
9
List the operations that can be performed on pointer variables.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
10
If p is a pointer of type int, what is the result of the statement p++;
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
11
The arithmetic operations that are allowed on pointer variables differ from those allowed on numbers.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
12
To create a dynamic array, you use the second form of the ____________________ operator.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
13
What is meant by a shallow copy?
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
14
Dynamic memory must be deallocated with the operator ____________________.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
15
C++ provides default member-wise initialization of objects that are initialized with the value of an existing object with the ____________________.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
16
In dynamic binding, the necessary code to call a specific function is generated by the compiler.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
17
What does these terms refer to:
- Abstract class:
- Abstract class:
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
18
What does these terms refer to:
- Address of operator (&):
- Address of operator (&):
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
19
What does these terms refer to:
- Compile-time binding (static binding, early binding):
- Compile-time binding (static binding, early binding):
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
20
What does these terms refer to:
- Copy constructor:
- Copy constructor:
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
21
What does these terms refer to:
- Dangling pointers:
- Dangling pointers:
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
22
What does these terms refer to:
- Deep copy:
- Deep copy:
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
23
What does these terms refer to:
- Dereferencing operator (indirection operator):
- Dereferencing operator (indirection operator):
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
24
What does these terms refer to:
- Dynamic array:
- Dynamic array:
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
25
What does these terms refer to:
- Dynamic variables:
- Dynamic variables:
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
26
What does these terms refer to:
- List:
- List:
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
27
What does these terms refer to:
- Length:
- Length:
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
28
What does these terms refer to:
- Member access operator arrow (->):
- Member access operator arrow (->):
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
29
What does these terms refer to:
- Memory leak:
- Memory leak:
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
30
What does these terms refer to:
- Null pointer:
- Null pointer:
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
31
What does these terms refer to:
- Ordered list:
- Ordered list:
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
32
What does these terms refer to:
- Ordered set:
- Ordered set:
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
33
What does these terms refer to:
- Pointer variable:
- Pointer variable:
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
34
What does these terms refer to:
- Pure virtual functions:
- Pure virtual functions:
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
35
What does these terms refer to:
- Run-time binding (dynamic binding, late binding):
- Run-time binding (dynamic binding, late binding):
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
36
What does these terms refer to:
- Shallow copy:
- Shallow copy:
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
37
What does these terms refer to:
- Unordered list:
- Unordered list:
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
38
What does these terms refer to:
- Unordered set:
- Unordered set:
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
39
What does these terms refer to:
- Virtual destructor:
- Virtual destructor:
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
40
What does these terms refer to:
- Virtual functions:
- Virtual functions:
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck