Filters
Question type

Study Flashcards

Match each term with a statement below.

Premises
An instance of a class
A program or class that instantiates objects of another prewritten class
The process of acquiring the traits of one's predecessors
The process of combining all of an object's attributes and methods into a single package
The set of all the values or contents of a class object's instance variables
The characteristics that define an object as part of a class
Multiple methods with the same name, which will act differently and appropriately when used with different types
Describes a group or collection of objects with common attributes
The data components of a class that belong to every instantiated object
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
Responses
polymorphism
inheritance
class
object
information hiding
attributes
encapsulation
class client
instance variables
state

Correct Answer

An instance of a class
A program or class that instantiates objects of another prewritten class
The process of acquiring the traits of one's predecessors
The process of combining all of an object's attributes and methods into a single package
The set of all the values or contents of a class object's instance variables
The characteristics that define an object as part of a class
Multiple methods with the same name, which will act differently and appropriately when used with different types
Describes a group or collection of objects with common attributes
The data components of a class that belong to every instantiated object
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

When you think in an object-oriented manner, everything is a(n) ____________________.

Correct Answer

verifed

verified

Discuss why it is helpful to think of items as instances of a class.

Correct Answer

verifed

verified

Thinking of items as instances of a clas...

View Answer

Within any object-oriented program, you continuously make requests to an object's methods, often including arguments as part of those requests.

A) True
B) False

Correct Answer

verifed

verified

The data components of a class that belong to every instantiated object are the class's ____.


A) numeric variables
B) string variables
C) instance variables
D) data variables

E) None of the above
F) All of the above

Correct Answer

verifed

verified

When methods have ____, other programs and methods may use the methods to get access to the private data.


A) private access
B) public access
C) complete access
D) all access

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

B

____ is a programming model that focuses on an application's components and data and the methods you need to manipulate them.


A) Classical programming
B) Functional programming
C) Procedural programming
D) Object-oriented programming

E) B) and C)
F) A) and B)

Correct Answer

verifed

verified

In most programming languages, you use the word ____ when you want to declare a static class member.


A) private
B) friend
C) public
D) static

E) All of the above
F) A) and B)

Correct Answer

verifed

verified

____________________ is the process of combining all of an object's attributes and methods into a single package.

Correct Answer

verifed

verified

Encapsulation

Object-oriented programmers sometimes say an object is one ____ of a class.


A) enumeration
B) instantiation
C) member
D) reference

E) C) and D)
F) B) and C)

Correct Answer

verifed

verified

Discuss nonstatic methods.

Correct Answer

verifed

verified

Nonstatic methods are methods that exist...

View Answer

____ methods are those for which no object needs to exist.


A) Dynamic
B) Public
C) Static
D) Private

E) B) and C)
F) A) and B)

Correct Answer

verifed

verified

Object-oriented programmers also use the term ____ when describing inheritance.


A) has-a
B) from-a
C) is-a
D) contains

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

____ are the characteristics that define an object.


A) Instances
B) Attributes
C) Behaviors
D) Methods

E) A) and B)
F) B) and C)

Correct Answer

verifed

verified

Discuss static methods.

Correct Answer

verifed

verified

Static methods, also called class methods, are those for which no object needs to exist. Static methods do not receive a this reference as an implicit parameter. Typically, static methods include the word static in the method header. (Java, C#, and C++ use the keyword static. In Visual Basic, the keyword Shared is used in place of static.

List five important features of object-oriented languages.

Correct Answer

verifed

verified

Five important features of obj...

View Answer

A(n) ____________________ is one instance of a class.

Correct Answer

verifed

verified

Methods in a class are static instance methods by default.

A) True
B) False

Correct Answer

verifed

verified

____ methods are methods that exist to be used with an object created from a class.


A) Nonstatic
B) Static
C) Hidden
D) Controlled

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

List the two identifiers within a method that always mean exactly the same thing when you write an instance method in a class.

Correct Answer

verifed

verified

When you write an instance method in a c...

View Answer

Showing 1 - 20 of 51

Related Exams

Show Answer