Filters
Question type

Study Flashcards

Another important concept in object-oriented programming is ________,which is the process of acquiring the traits of one's predecessors.

Correct Answer

verifed

verified

In addition to their attributes,classes have methods associated with them,and every object instantiated from a given class possesses different methods.

A) True
B) False

Correct Answer

verifed

verified

Match each term with a statement below. -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

Match each term with a statement below. -Explain what private access means in object-oriented programming.

Correct Answer

verifed

verified

To prevent unauthorized field modificati...

View Answer

Declaring a class does not create actual objects.

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) C) and D)
F) A) and B)

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) All of the above
F) None of the above

Correct Answer

verifed

verified

Methods in object-oriented programs use sequence,selection,and looping structures and make use of arrays.

A) True
B) False

Correct Answer

verifed

verified

The purpose of a(n) ____ is to return a value from the class to a client.


A) get method
B) set method
C) pull method
D) access method

E) B) and C)
F) None of the above

Correct Answer

verifed

verified

Match each term with a statement below. -The characteristics that define an object as part of a class


A) instance variables
B) class client
C) inheritance
D) class
E) information hiding
F) state
G) primitive data types
H) attributes
I) encapsulation
J) object

K) A) and I)
L) A) and B)

Correct Answer

verifed

verified

A ____ is a set of program statements that lists the characteristics of each object and the methods each object can use.


A) class interface
B) class definition
C) class reference
D) class model

E) A) and D)
F) None of the above

Correct Answer

verifed

verified

Match each term with a statement below. -List the three parts of a class definition.

Correct Answer

verifed

verified

A class definition can contain...

View Answer

The purpose of ____ is to set or change the values of data fields defined within the class.


A) get methods
B) put methods
C) make methods
D) set methods

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

Correct Answer

verifed

verified

The concept of a class is useful because of its ____.


A) reusability
B) mapping to reality
C) abstract nature
D) portability

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

Correct Answer

verifed

verified

Object-oriented programmers usually specify that their data fields will have private access.

A) True
B) False

Correct Answer

verifed

verified

When you think in an object-oriented manner,every object is a member of a more general ____.


A) class
B) struct
C) method
D) collection

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

Correct Answer

verifed

verified

____ are the characteristics of an object.


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

E) A) and D)
F) A) and C)

Correct Answer

verifed

verified

In older object-oriented programming languages,simple numbers and characters are said to be ____ data types.


A) primitive
B) simple
C) complex
D) higher-order

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

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

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


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

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

Correct Answer

verifed

verified

Showing 21 - 40 of 60

Related Exams

Show Answer