Deck 14: Object-Oriented Programming

Full screen (f)
exit full mode
Question
Procedures,typically,operate on data items that are within the procedure.
Use Space or
up arrow
down arrow
to flip the card.
Question
Which method is called automatically when an object is created?

A)design
B)public
C)private
D)constructor
E)None of the above
Question
The variables,arrays,or other data structures that are stored in the object are known as the object's __________.

A)Records
B)Methods
C)Addresses
D)Fields
E)None of the above
Question
________________________ is a standard way of drawing diagrams that describe object-oriented systems.

A)Data flow diagram
B)UML
C)flowchart
D)Hierarchy chart
E)None of the above
Question
The programmer determines the fields and methods of an object and creates the ______ code.

A)Print
B)Class
C)Module
D)Procedure
E)None of the above
Question
In a UML diagram what character do you place in front of a field of method name to indicate it is public?

A)+
B)=
C)P
D)-
E)None of the above
Question
Which of the following tasks are performed by a procedure?

A)Reading a file
B)Gathering input
C)Displaying output
D)All of the above
E)None of the above
Question
Which of the following are contained in a UML diagram for a class?

A)Class name
B)Class fields
C)Class methods
D)All of the above
E)None of the above
Question
What type of programming encapsulates data and functions together in an object?

A)Object-oriented
B)Interactive
C)Procedural
D)Menu-driven
E)None of the above
Question
What type of programming is centered on the procedures or actions that take place in a program?

A)Object-oriented
B)Interactive
C)Procedural
D)Menu-driven
E)None of the above
Question
____________________ allows a new class to extend an existing class.

A)successor
B)accessor
C)inheritance
D)public
E)None of the above
Question
The procedures that the object performs are known as ____________.

A)Records
B)Methods
C)Addresses
D)fields
E)None of the above
Question
_______________ is another name for accessor methods.

A)getters
B)accessors
C)setters
D)private
E)None of the above
Question
The class _________ starts with the word Class followed by the name of the class.

A)body
B)definition
C)return
D)members
E)None of the above
Question
The word Private that appears before a field declaration,in a class definition,is known as a(n)____________.

A)access specifier
B)specifier
C)Class specifier
D)Inside specifier
E)None of the above
Question
The mutator methods are sometimes called _________________.

A)getters
B)accessors
C)setters
D)private
E)None of the above
Question
What allows you to create methods with the same name in different classes and gives you the ability to call the correct method depending on the type of object that is used to call it?

A)Constructor
B)Inheritance
C)Accessor
D)Polymorphism
E)None of the above
Question
The act of declaring a class variable does not actually create an object in memory.
Question
What software entity contains both data and procedures?

A)Objects
B)Instances
C)Events
D)Memory location(s)
E)None of the above
Question
What is the term used for the fields and methods that belong to a class?

A)body
B)definition
C)return
D)members
E)None of the above
Question
When a class variable is assigned the address of an object,it is said that the variable references the object.
Question
The methods that can be accessed by entities outside the object are known as _________ methods.
Question
When a superclass method has the same name as a subclass method,it is often said that the superclass method overrides the subclass method.
Question
A method that gets a value from a class's field but does not change it is known as a(n)____________ method.
Question
The object's ___________ are the modules and functions of the object.
Question
In an inheritance relationship,the superclass inherits members from the subclass,not the other way around.
Question
The separation of data and the code that operates on the data can lead to problems as a program becomes larger and more complex.
Question
A ________ is the 'blueprint' of the object that is created from it.
Question
External entities do not have direct access to the object's private methods.
Question
When an object's internal data is hidden from outside code and access to the data is restricted to the object's methods,the data is protected from accidental corruption.
Question
___________ are created from abstract data types that encapsulate data and functions together.
Question
The key word ___________ creates the object in memory.
Question
If a constructor is not written when the class is compiled,then a constructor is automatically provided and it is known as the default constructor.
Question
______________ refers to the combining of data and code into a single object.
Question
The private object fields can be directly manipulated by outside entities.
Question
There are primarily three methods of programming in use today: procedural,recursive,and object-oriented.
Question
The data contained in an object are known as the object's __________.
Question
____________ refers to an object's ability to hide its data from code that is outside the object.
Question
____________ programming is a method of writing software where it is centered on the procedures or actions that take place in a program.
Question
When the program is running,it can use the class to create,in memory,one object of a specific type as needed.
Question
A __________ is code that specifies the fields and methods for a particular type of object.
Question
The methods in an object that are used to initialize an object's fields with starting values are called ________________.
Question
Each object that is created from a class is called a(n)_________ of the class.
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/43
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 14: Object-Oriented Programming
1
Procedures,typically,operate on data items that are within the procedure.
False
2
Which method is called automatically when an object is created?

A)design
B)public
C)private
D)constructor
E)None of the above
D
3
The variables,arrays,or other data structures that are stored in the object are known as the object's __________.

A)Records
B)Methods
C)Addresses
D)Fields
E)None of the above
D
4
________________________ is a standard way of drawing diagrams that describe object-oriented systems.

A)Data flow diagram
B)UML
C)flowchart
D)Hierarchy chart
E)None of the above
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
5
The programmer determines the fields and methods of an object and creates the ______ code.

A)Print
B)Class
C)Module
D)Procedure
E)None of the above
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
6
In a UML diagram what character do you place in front of a field of method name to indicate it is public?

A)+
B)=
C)P
D)-
E)None of the above
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
7
Which of the following tasks are performed by a procedure?

A)Reading a file
B)Gathering input
C)Displaying output
D)All of the above
E)None of the above
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
8
Which of the following are contained in a UML diagram for a class?

A)Class name
B)Class fields
C)Class methods
D)All of the above
E)None of the above
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
9
What type of programming encapsulates data and functions together in an object?

A)Object-oriented
B)Interactive
C)Procedural
D)Menu-driven
E)None of the above
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
10
What type of programming is centered on the procedures or actions that take place in a program?

A)Object-oriented
B)Interactive
C)Procedural
D)Menu-driven
E)None of the above
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
11
____________________ allows a new class to extend an existing class.

A)successor
B)accessor
C)inheritance
D)public
E)None of the above
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
12
The procedures that the object performs are known as ____________.

A)Records
B)Methods
C)Addresses
D)fields
E)None of the above
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
13
_______________ is another name for accessor methods.

A)getters
B)accessors
C)setters
D)private
E)None of the above
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
14
The class _________ starts with the word Class followed by the name of the class.

A)body
B)definition
C)return
D)members
E)None of the above
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
15
The word Private that appears before a field declaration,in a class definition,is known as a(n)____________.

A)access specifier
B)specifier
C)Class specifier
D)Inside specifier
E)None of the above
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
16
The mutator methods are sometimes called _________________.

A)getters
B)accessors
C)setters
D)private
E)None of the above
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
17
What allows you to create methods with the same name in different classes and gives you the ability to call the correct method depending on the type of object that is used to call it?

A)Constructor
B)Inheritance
C)Accessor
D)Polymorphism
E)None of the above
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
18
The act of declaring a class variable does not actually create an object in memory.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
19
What software entity contains both data and procedures?

A)Objects
B)Instances
C)Events
D)Memory location(s)
E)None of the above
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
20
What is the term used for the fields and methods that belong to a class?

A)body
B)definition
C)return
D)members
E)None of the above
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
21
When a class variable is assigned the address of an object,it is said that the variable references the object.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
22
The methods that can be accessed by entities outside the object are known as _________ methods.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
23
When a superclass method has the same name as a subclass method,it is often said that the superclass method overrides the subclass method.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
24
A method that gets a value from a class's field but does not change it is known as a(n)____________ method.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
25
The object's ___________ are the modules and functions of the object.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
26
In an inheritance relationship,the superclass inherits members from the subclass,not the other way around.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
27
The separation of data and the code that operates on the data can lead to problems as a program becomes larger and more complex.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
28
A ________ is the 'blueprint' of the object that is created from it.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
29
External entities do not have direct access to the object's private methods.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
30
When an object's internal data is hidden from outside code and access to the data is restricted to the object's methods,the data is protected from accidental corruption.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
31
___________ are created from abstract data types that encapsulate data and functions together.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
32
The key word ___________ creates the object in memory.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
33
If a constructor is not written when the class is compiled,then a constructor is automatically provided and it is known as the default constructor.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
34
______________ refers to the combining of data and code into a single object.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
35
The private object fields can be directly manipulated by outside entities.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
36
There are primarily three methods of programming in use today: procedural,recursive,and object-oriented.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
37
The data contained in an object are known as the object's __________.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
38
____________ refers to an object's ability to hide its data from code that is outside the object.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
39
____________ programming is a method of writing software where it is centered on the procedures or actions that take place in a program.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
40
When the program is running,it can use the class to create,in memory,one object of a specific type as needed.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
41
A __________ is code that specifies the fields and methods for a particular type of object.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
42
The methods in an object that are used to initialize an object's fields with starting values are called ________________.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
43
Each object that is created from a class is called a(n)_________ of the class.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 43 flashcards in this deck.