Deck 7: 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
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/50
Play
Full screen (f)
Deck 7: Object-Oriented Concepts
1
A ____ is a term that describes objects with common attributes.
A)relationship
C)class
B)case
D)method
A)relationship
C)class
B)case
D)method
C
2
Object attributes are often called ____ to help distinguish them from other variables you might use.
A)constructors
C)fields
B)instances
D)records
A)constructors
C)fields
B)instances
D)records
C
3
The set of all the values or contents of a class object's instance variables is also known as its ____.
A)classification
C)group
B)state
D)core
A)classification
C)group
B)state
D)core
B
4
With object-oriented programming, once you create an object, you can develop new objects that possess all the traits of the original object, plus any new traits you desire.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
5
The purpose of set methods is to set the values of data fields within the class.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
6
Creating multiple methods with the same name, which will act differently and appropriately when used with different types of objects, is known as polymorphism.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
7
With well-written methods that belong to classes you use, you need not understand how they work internally to be able to use them.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
8
____ is the process of acquiring the traits of one's predecessors.
A)Heritage
C)Inheritance
B)Legacy
D)Encapsulation
A)Heritage
C)Inheritance
B)Legacy
D)Encapsulation
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
9
A program or class that instantiates methods of another prewritten class is a class client or class user.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
10
A class can contain another class's objects as data members.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
11
A this reference is an automatically created variable that holds the address of an object and passes it to an instance method whenever the method is called.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
12
Declaring a class creates actual objects.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
13
A(n) ____ is one instance of a class.
A)method
C)instantiation
B)object
D)attribute
A)method
C)instantiation
B)object
D)attribute
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
14
The data components of a class that belong to every instantiated object are the class's ____ variables.
A)instance
C)functional
B)initial
D)method
A)instance
C)functional
B)initial
D)method
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
15
When you think in an object-oriented manner, everything is an object, and every object is a member of a method.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
16
A program or class that instantiates objects of another prewritten class is a class client or ____.
A)client user
C)class id
B)client id
D)class user
A)client user
C)class id
B)client id
D)class user
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
17
Everything is an object, and every object is a member of a ____.
A)class
C)case
B)method
D)process
A)class
C)case
B)method
D)process
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
18
In addition to their attributes, class objects have methods associated with them, and every object that is an instance of a class possesses the same methods.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
19
____ is the concept that other classes should not alter an object's attributes-only the methods of an object's own class should have that privilege.
A)Information hiding
C)Data holding
B)Information holding
D)Static data
A)Information hiding
C)Data holding
B)Information holding
D)Static data
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
20
The concept of a class is useful because of its ____.
A)usability
C)functionality
B)interchangeability
D)reusability
A)usability
C)functionality
B)interchangeability
D)reusability
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
21
When you write object-oriented programs, an object is a(n) ____________________ of a class.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
22
The process of combining all of an object's attributes and methods into a single package is called ____________________.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
23
When using ____, you can develop new classes more quickly by extending existing classes that already work.
A)inheritance
C)encapsulation
B)polymorphism
D)construction
A)inheritance
C)encapsulation
B)polymorphism
D)construction
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
24
The relationship created when using a class object within another class object is also called a(n) ____ relationship.
A)was-is
C)has-a
B)has-is
D)is-a
A)was-is
C)has-a
B)has-is
D)is-a
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
25
An ____ is the adjective that defines the type of access that outside classes will have to the attribute or method.
A)attribute definer
C)access definer
B)attribute specifier
D)access specifier
A)attribute definer
C)access definer
B)attribute specifier
D)access specifier
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
26
Using a class object within another class object is known as ____.
A)nesting
C)building
B)circular referencing
D)composition
A)nesting
C)building
B)circular referencing
D)composition
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
27
Programmers often use a ____ to illustrate class features or to help plan them.
A)class diagram
C)class illustration
B)polymorphic diagram
D)flowchart
A)class diagram
C)class illustration
B)polymorphic diagram
D)flowchart
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
28
Object-oriented programmers usually specify that their data fields will have ____ access.
A)limited
C)private
B)transparent
D)public
A)limited
C)private
B)transparent
D)public
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
29
A ____ reference is an automatically created variable that holds the address of an object and passes it to an instance method whenever the method is called.
A)key
C)that
B)public
D)this
A)key
C)that
B)public
D)this
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
30
A ____ is a set of program statements that tells you the characteristics of the class's objects and the methods that can be applied to its objects.
A)class set
C)class identification
B)class definition
D)class group
A)class set
C)class identification
B)class definition
D)class group
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
31
A ____ is an environment in which you can create programs by dragging components such as buttons and labels onto a screen and arranging them visually.
A)visual development environment
C)visual design environment
B)virtual development environment
D)virtual design environment
A)visual development environment
C)visual design environment
B)virtual development environment
D)virtual design environment
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
32
____________________ is the process of acquiring the traits of one's predecessors.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
33
A class diagram consists of a ____ divided into three sections.
A)square
C)circle
B)rectangle
D)triangle
A)square
C)circle
B)rectangle
D)triangle
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
34
All objects have ____________________, which are the characteristics that define them as part of a particular class.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
35
A(n) ____________________ is a category of things.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
36
A(n) ____ method operates appropriately for each separate instance of a class.
A)instance
C)object
B)starter
D)defining
A)instance
C)object
B)starter
D)defining
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
37
In class diagrams, a ____ sign precedes the items that are private.
A)plus
C)colon
B)semicolon
D)minus
A)plus
C)colon
B)semicolon
D)minus
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
38
The ability to use methods without knowing the details of their contents is a feature of ____.
A)abstraction
C)inheritance
B)encapsulation
D)construction
A)abstraction
C)inheritance
B)encapsulation
D)construction
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
39
Class diagrams are a type of ____ diagram.
A)Unified Illustration Language
C)Object-Oriented Modeling Language
B)Unified Modeling Language
D)Unified Pseudocode Language
A)Unified Illustration Language
C)Object-Oriented Modeling Language
B)Unified Modeling Language
D)Unified Pseudocode Language
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
40
A(n) ____ is just an abstract description of what an object will be like if any objects are ever actually instantiated.
A)class
C)identifier
B)object
D)entity
A)class
C)identifier
B)object
D)entity
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
41
In older object-oriented programming languages, ____________________ data types, such as numbers and characters, are distinguished from objects that are class types.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
42
The term ____________________ implies that a type's data can be accessed only through methods.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
43
The purpose of a(n) ____________________ method is to return a value to the world outside the class.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
44
No values need to be passed into a(n) ____________________ method, and no value is returned from it because this method does not communicate with the outside world.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
45
A(n) ____________________ method is another name for a set method.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
46
____________________ methods do not have this references, and do not need objects to exist to be called.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
47
____________________ are collections of classes that serve related purposes.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
48
Most object-oriented programmers usually specify object data fields to have ____________________ access.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
49
Every class must have a(n) ____________________, and can optionally contain data and methods.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
50
By convention, a(n) ____________________ lists the names of the data items first, followed by a colon and their data type.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck