Deck 12: Pointers, Classes, Virtual Functions, Abstract Classes, and Lists

Full screen (f)
exit full mode
Question
What is the general syntax to declare a pointer variable?
Use Space or
up arrow
down arrow
to flip the card.
Question
The value of a pointer variable is always a(n) ____________________.
Question
The address of operator is a binary operator.
Question
There is no name associated with pointer data types.
Question
What is the purpose of the member access operator arrow?
Question
Write an equivalent statement to the following: studentPtr->gpa = 3.9;
Question
Variables that are created during program execution are called ____________________ variables.
Question
Any integer can be assigned to a pointer variable.
Question
List the operations that can be performed on pointer variables.
Question
If p is a pointer of type int, what is the result of the statement p++;
Question
The arithmetic operations that are allowed on pointer variables differ from those allowed on numbers.
Question
To create a dynamic array, you use the second form of the ____________________ operator.
Question
What is meant by a shallow copy?
Question
Dynamic memory must be deallocated with the operator ____________________.
Question
C++ provides default member-wise initialization of objects that are initialized with the value of an existing object with the ____________________.
Question
In dynamic binding, the necessary code to call a specific function is generated by the compiler.
Question
What does these terms refer to:

- \gg Abstract class:
Question
What does these terms refer to:

- \gg Address of operator (&):
Question
What does these terms refer to:

- \gg Compile-time binding (static binding, early binding):
Question
What does these terms refer to:

- \gg Copy constructor:
Question
What does these terms refer to:

- \gg Dangling pointers:
Question
What does these terms refer to:

- \gg Deep copy:
Question
What does these terms refer to:

- \gg Dereferencing operator (indirection operator):
Question
What does these terms refer to:

- \gg Dynamic array:
Question
What does these terms refer to:

- \gg Dynamic variables:
Question
What does these terms refer to:

- \gg List:
Question
What does these terms refer to:

- \gg Length:
Question
What does these terms refer to:

- \gg Member access operator arrow (->):
Question
What does these terms refer to:

- \gg Memory leak:
Question
What does these terms refer to:

- \gg Null pointer:
Question
What does these terms refer to:

- \gg Ordered list:
Question
What does these terms refer to:

- \gg Ordered set:
Question
What does these terms refer to:

- \gg Pointer variable:
Question
What does these terms refer to:

- \gg Pure virtual functions:
Question
What does these terms refer to:

- \gg Run-time binding (dynamic binding, late binding):
Question
What does these terms refer to:

- \gg Shallow copy:
Question
What does these terms refer to:

- \gg Unordered list:
Question
What does these terms refer to:

- \gg Unordered set:
Question
What does these terms refer to:

- \gg Virtual destructor:
Question
What does these terms refer to:

- \gg Virtual functions:
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/40
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
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:

- \gg 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:

- \gg 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:

- \gg 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:

- \gg 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:

- \gg 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:

- \gg 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:

- \gg 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:

- \gg 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:

- \gg 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:

- \gg 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:

- \gg 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:

- \gg 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:

- \gg 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:

- \gg 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:

- \gg 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:

- \gg 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:

- \gg 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:

- \gg 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:

- \gg 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:

- \gg 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:

- \gg 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:

- \gg 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:

- \gg 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:

- \gg Virtual functions:
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 40 flashcards in this deck.