Deck 10: Classes and Data Abstraction
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/38
Play
Full screen (f)
Deck 10: Classes and Data Abstraction
1
What are the two built-in operations that are valid for class objects?
assignment (=) and member access (.)
2
By default, all members of a class are ____________________ (public/private).
private
3
In the definition of a class, you initialize the variable when you declare it.
False
4
If a member of a class is a function, it can directly access any member of the class - member variables and member functions.
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
5
What is meant by an automatic class object?
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
6
Classes can be passed as parameters to functions either by value or by reference.
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
7
In a function definition's heading, the name of the function is the name of the class, followed by the ___________________, followed by the function name.
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
8
What is an accessor function?
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
9
Separating the design details of what an object does from its implementation is called ____________________.
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
10
The set of values belonging to an ADT is called a(n) ____________________.
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
11
A(n) ____________________ file contains the specification details of a class.
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
12
The implementation file of a class contains the function main.
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
13
What does these terms refer to:
- Abstract data type (ADT):
- Abstract data type (ADT):
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
14
What does these terms refer to:
- Abstraction:
- Abstraction:
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
15
What does these terms refer to:
- Accessor function:
- Accessor function:
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
16
What does these terms refer to:
- Build, rebuild, or make:
- Build, rebuild, or make:
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
17
What does these terms refer to:
- Class:
- Class:
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
18
What does these terms refer to:
- Class object (class instance, object):
- Class object (class instance, object):
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
19
What does these terms refer to:
- Client:
- Client:
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
20
What does these terms refer to:
- Constant function:
- Constant function:
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
21
What does these terms refer to:
- Default constructor:
- Default constructor:
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
22
What does these terms refer to:
- Domain:
- Domain:
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
23
What does these terms refer to:
- Header file (interface file):
- Header file (interface file):
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
24
What does these terms refer to:
- Implementation file:
- Implementation file:
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
25
What does these terms refer to:
- Information hiding:
- Information hiding:
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
26
What does these terms refer to:
- Inline function definition:
- Inline function definition:
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
27
What does these terms refer to:
- Instance variables:
- Instance variables:
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
28
What does these terms refer to:
- Member access operator:
- Member access operator:
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
29
What does these terms refer to:
- Members:
- Members:
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
30
What does these terms refer to:
- Mutator function:
- Mutator function:
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
31
What does these terms refer to:
- Object-oriented design (OOD):
- Object-oriented design (OOD):
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
32
What does these terms refer to:
- Objects:
- Objects:
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
33
What does these terms refer to:
- Operations:
- Operations:
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
34
What does these terms refer to:
- Postcondition:
- Postcondition:
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
35
What does these terms refer to:
- Precondition:
- Precondition:
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
36
What does these terms refer to:
- Scope resolution operator (::):
- Scope resolution operator (::):
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
37
What does these terms refer to:
- Type name:
- Type name:
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
38
What does these terms refer to:
- Unified Modeling Language (UML):
- Unified Modeling Language (UML):
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck