Filters
Question type

Study Flashcards

Objects both in the real world and in object-oriented programming contain ____ and methods.


A) behaviors
B) attributes
C) help
D) primitive data types

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

Correct Answer

verifed

verified

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

A(n) ____ consists of a rectangle divided into three sections.


A) class tree
B) dependency diagram
C) class diagram
D) entity-relationship diagram

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

Correct Answer

verifed

verified

A(n) ____ is the adjective defining the type of access (public or private) that outside classes will have to the attribute or method.


A) control specifier
B) control modifier
C) access specifier
D) access controller

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

Correct Answer

verifed

verified

In addition to their attributes, class objects have methods associated with them, and every object that is an instance of a class possesses different methods.

A) True
B) False

Correct Answer

verifed

verified

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


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

E) A) and B)
F) B) and D)

Correct Answer

verifed

verified

A ____ method is also known as a help method.


A) work
B) private
C) public
D) set

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

Correct Answer

verifed

verified

Discuss why the reusability of a class makes it useful.

Correct Answer

verifed

verified

The concept of a class is useful because...

View Answer

Methods that set values are called ____ methods.


A) modifier
B) mutator
C) creator
D) access

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

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

Correct Answer

verifed

verified

The accessor method is another name for the set method.

A) True
B) False

Correct Answer

verifed

verified

A(n) ____ is a program or class that instantiates objects of another prewritten class.


A) instantiation
B) method
C) class client
D) class definition

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

Correct Answer

verifed

verified

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


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

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

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

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

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

Correct Answer

verifed

verified

List the three parts of a class definition.

Correct Answer

verifed

verified

A class definition can contain...

View Answer

The term ____ implies that the type's data can be accessed only through methods.


A) abstract type library
B) advanced data type
C) abstract definition type
D) abstract data type

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

Correct Answer

verifed

verified

Showing 21 - 40 of 51

Related Exams

Show Answer