Deck 10: Classes and Object Oriented Programming

Full screen (f)
exit full mode
Question
What is another name for the accessor methods?

A) Setters
B) Getters
C) Instances
D) Attributes
Use Space or
up arrow
down arrow
to flip the card.
Question
A mutator method has no control over the way that a class's data attributes are modified.
Question
What are the procedures that an object performs called?

A) Methods
B) Actions
C) Modules
D) Instances
Question
What is the combining of data and code in a single object known as?

A) Modularity
B) Instantiation
C) Encapsulation
D) Objectification
Question
Object-oriented programming allows us to hide the object's data attributes from code that is outside the object.
Question
What is another name for the mutator methods?

A) Setters
B) Getters
C) Instances
D) Attributes
Question
In a UML diagram, the middle section holds the list of the class's methods.
Question
The instances of a class share the data attributes in the class.
Question
What type of programming contains class definitions?

A) Procedural
B) Object
C) Object-oriented
D) Modular
Question
Which section in the UML holds the list of the class's methods?

A) First
B) Second
C) Third
D) Fourth
Question
What type of method provides a safe way for code outside a class to retrieve the values of attributes, without exposing the attributes in a way that they could be changed by the code outside the method?

A) Accessor
B) Mutator
C) Setter
D) Class
Question
Which section in the UML holds the list of the class's data attributes?

A) First
B) Second
C) Third
D) Fourth
Question
What is the special name given to the method that returns a string containing the object's state?

A) __state__
B) __obj__
C) __str__
D) __init__
Question
Procedures operate on data items that are separate from the procedures.
Question
What does the acronym UML stand for?

A) Unified Modeling Language
B) United Modeling Language
C) Unified Model Language
D) United Model Language
Question
When a method is called, what does Python make to reference the specific object on which the method is supposed to operate?

A) state variable
B) self parameter
C) object data
D) init procedure
Question
A(n) _____ is a set of real-world objects, parties, and major events related to the problem.

A) class
B) problem domain
C) object
D) instance
Question
Which method is automatically executed when an instance of the class is created in memory?

A) __state__
B) __obj__
C) __str__
D) __init__
Question
What is, conceptually, a self-contained unit that consists of data attributes and methods that operate on the data attributes?

A) Class
B) Object
C) Instance
D) Module
Question
What attributes belong to a specific instance of the class?

A) Instance
B) Self
C) Object
D) Data
Question
A method that returns a value from a class's attribute but does not change it is known as a(n) _______________ method.
Question
The self parameter is required in every method of a class.
Question
A class definition is stored in the library so that it can be imported into any program.
Question
The _______________ attributes are created by the self parameter and they belong to a specific instance of the class.
Question
In _______________ programming, the programming is centered on objects that are created from abstract data types that encapsulate data and functions together.
Question
_______________ programming is a method of writing software that centers on the actions that take place in a program.
Question
A(n) _______________ method in a class initializes an object's data attributes.
Question
An object is a stand-alone program but is used by programs that need its service.
Question
_______________ provides a set of standard diagrams for graphically depicting object-oriented systems.
Question
A(n) _______________ is code that specifies the data attributes and methods for a particular type of object.
Question
The self parameter need not be named self, but it is strongly recommended to conform with standard practice.
Question
Each object that is created from a class is called a(n) _______________ of the class.
Question
A class _______________ is a set of statements that define a class's methods and data attributes.
Question
An object's _______________ is simply the values of the object's attributes at any given moment.
Question
A class might be thought of as a 'blueprint' that an object may be created from.
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/35
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 10: Classes and Object Oriented Programming
1
What is another name for the accessor methods?

A) Setters
B) Getters
C) Instances
D) Attributes
B
2
A mutator method has no control over the way that a class's data attributes are modified.
False
3
What are the procedures that an object performs called?

A) Methods
B) Actions
C) Modules
D) Instances
A
4
What is the combining of data and code in a single object known as?

A) Modularity
B) Instantiation
C) Encapsulation
D) Objectification
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
5
Object-oriented programming allows us to hide the object's data attributes from code that is outside the object.
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
6
What is another name for the mutator methods?

A) Setters
B) Getters
C) Instances
D) Attributes
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
7
In a UML diagram, the middle section holds the list of the class's methods.
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
8
The instances of a class share the data attributes in the class.
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
9
What type of programming contains class definitions?

A) Procedural
B) Object
C) Object-oriented
D) Modular
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
10
Which section in the UML holds the list of the class's methods?

A) First
B) Second
C) Third
D) Fourth
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
11
What type of method provides a safe way for code outside a class to retrieve the values of attributes, without exposing the attributes in a way that they could be changed by the code outside the method?

A) Accessor
B) Mutator
C) Setter
D) Class
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
12
Which section in the UML holds the list of the class's data attributes?

A) First
B) Second
C) Third
D) Fourth
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
13
What is the special name given to the method that returns a string containing the object's state?

A) __state__
B) __obj__
C) __str__
D) __init__
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
14
Procedures operate on data items that are separate from the procedures.
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
15
What does the acronym UML stand for?

A) Unified Modeling Language
B) United Modeling Language
C) Unified Model Language
D) United Model Language
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
16
When a method is called, what does Python make to reference the specific object on which the method is supposed to operate?

A) state variable
B) self parameter
C) object data
D) init procedure
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
17
A(n) _____ is a set of real-world objects, parties, and major events related to the problem.

A) class
B) problem domain
C) object
D) instance
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
18
Which method is automatically executed when an instance of the class is created in memory?

A) __state__
B) __obj__
C) __str__
D) __init__
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
19
What is, conceptually, a self-contained unit that consists of data attributes and methods that operate on the data attributes?

A) Class
B) Object
C) Instance
D) Module
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
20
What attributes belong to a specific instance of the class?

A) Instance
B) Self
C) Object
D) Data
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
21
A method that returns a value from a class's attribute but does not change it is known as a(n) _______________ method.
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
22
The self parameter is required in every method of a class.
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
23
A class definition is stored in the library so that it can be imported into any program.
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
24
The _______________ attributes are created by the self parameter and they belong to a specific instance of the class.
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
25
In _______________ programming, the programming is centered on objects that are created from abstract data types that encapsulate data and functions together.
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
26
_______________ programming is a method of writing software that centers on the actions that take place in a program.
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
27
A(n) _______________ method in a class initializes an object's data attributes.
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
28
An object is a stand-alone program but is used by programs that need its service.
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
29
_______________ provides a set of standard diagrams for graphically depicting object-oriented systems.
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
30
A(n) _______________ is code that specifies the data attributes and methods for a particular type of object.
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
31
The self parameter need not be named self, but it is strongly recommended to conform with standard practice.
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
32
Each object that is created from a class is called a(n) _______________ of the class.
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
33
A class _______________ is a set of statements that define a class's methods and data attributes.
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
34
An object's _______________ is simply the values of the object's attributes at any given moment.
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
35
A class might be thought of as a 'blueprint' that an object may be created from.
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 35 flashcards in this deck.