Deck 4: Basic Object-Oriented Concepts
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/26
Play
Full screen (f)
Deck 4: Basic Object-Oriented Concepts
1
Which of the following best describes cardinality?
A) It refers to the number of associations that naturally occur between objects.
B) It can also be called multiplicity.
C) It is the relationships of objects in a system.
D) All of the above.
A) It refers to the number of associations that naturally occur between objects.
B) It can also be called multiplicity.
C) It is the relationships of objects in a system.
D) All of the above.
D
2
A(n) __________ is a specific instance of a class.
object
3
Each object might have a different value for a given attribute.
False
4
The term __________ means something that the object knows how to do.
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
5
Collections of custom methods are called __________ __________.
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
6
Objects are never naturally related to other objects.
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
7
__________ means that several items are packaged together into one unit.
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
8
The term ___________ literally means "multiple forms".
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
9
A(n) ___________ is an association based on the contest in which we view the objects.
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
10
What is an aggregation relationship?
A) It is a whole-part relationship.
B) It is an association relationship.
C) It is a connection relationship.
D) It is a composition relationship.
A) It is a whole-part relationship.
B) It is an association relationship.
C) It is a connection relationship.
D) It is a composition relationship.
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
11
Which of the following is TRUE concerning object relationships?
A) They never occur naturally.
B) Cardinality describes the associations between objects.
C) They occur without regard to the context.
D) None of the above.
A) They never occur naturally.
B) Cardinality describes the associations between objects.
C) They occur without regard to the context.
D) None of the above.
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
12
__________ refers to the number of associations that naturally occur between objects.
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
13
A class is a type of thing.
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
14
A(n) __________ is the general category that describes a type of thing.
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
15
Which of the following is TRUE concerning cardinality?
A) It is different from multiplicity.
B) It describes the attributes of a class.
C) It describes natural associations between objects.
D) It describes the capabilities of a class.
A) It is different from multiplicity.
B) It describes the attributes of a class.
C) It describes natural associations between objects.
D) It describes the capabilities of a class.
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
16
The computer creates a(n) __________ __________ for each object when the object is created.
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
17
Which of the following is TRUE concerning attributes?
A) They are capabilities of an object.
B) They are are pieces of information known about objects.
C) They are messages an object can send.
D) All of the above.,
A) They are capabilities of an object.
B) They are are pieces of information known about objects.
C) They are messages an object can send.
D) All of the above.,
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
18
Which of the following best describes relationships in object-oriented programming?
A) Associations based on system requirements.
B) Associations based on the context with which the object is viewed.
C) Associations based on system diagrams.
D) Associations based on implementation.
A) Associations based on system requirements.
B) Associations based on the context with which the object is viewed.
C) Associations based on system diagrams.
D) Associations based on implementation.
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
19
A(n) __________ is one piece of information that needs to be know about the objects in the class.
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
20
An object is the general category and a class is a specific instance.
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
21
The term polymorphism literally means "multiple forms".
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
22
Just the method name alone is called the method signature.
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
23
Encapsulation allows us to think of the attributes and behaviors of the object as one package.
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
24
An object can send a message to another object.
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
25
The unified modeling language (UML) uses the term aggregation relationship in place of cardinality.
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
26
Class libraries are a collection of custom methods.
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck