Exam 15: Creating Classes and Objects

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

What is an advantage of object-oriented programming?

(Essay)
4.9/5
(38)

____ are the operations (actions) that the object is capable of performing.

(Multiple Choice)
4.9/5
(44)

What is a method's signature?

(Short Answer)
4.7/5
(44)

The Class statement ends with the ____ clause.

(Multiple Choice)
4.8/5
(39)

____ are the actions to which an object can respond.

(Multiple Choice)
4.8/5
(37)

A(n) ____ can represent something found in real life, such as a wristwatch or a car.

(Multiple Choice)
4.8/5
(28)

Describe what the  Get block and Set block does.

(Essay)
4.8/5
(46)

The Class statement begins with ____.

(Multiple Choice)
4.9/5
(33)

A class contains all of the attributes and ____________________ of the object it instantiates.

(Short Answer)
4.8/5
(45)

A constructor that has no parameters is called the ____________________ constructor.

(Short Answer)
4.8/5
(41)

How can you make the Private members of a class available to an application?

(Essay)
4.8/5
(50)

A(n) ____ encapsulates all of the attributes and behaviors of the object it instantiates.

(Multiple Choice)
4.8/5
(41)

You should use ____ to name a property.

(Multiple Choice)
4.8/5
(39)

You can write a(n) ____ as either a Function procedure or a Sub procedure.

(Multiple Choice)
4.8/5
(46)

Although you can define a class that contains only attributes represented by Public variables, it is rarely done. Describe the disadvantage of using Public variables in a class.

(Essay)
4.9/5
(34)

To instantiate a class-level object variable, you use the ____ keyword.

(Multiple Choice)
4.8/5
(35)
Match each item with a statement below.
Includes methods and events
Set block
Used in a Property procedure header to indicate that an application can set the property's value, but it cannot retrieve the value
Property procedure
Used to declare a variable that is not visible to applications that contain an instance of the class
New keyword
Correct Answer:
Verified
Premises:
Responses:
Includes methods and events
Set block
Used in a Property procedure header to indicate that an application can set the property's value, but it cannot retrieve the value
Property procedure
Used to declare a variable that is not visible to applications that contain an instance of the class
New keyword
Used to create an object
ReadOnly keyword
Allows an application to assign a value to the Private variable associated with a property
WriteOnly keyword
Allows an application to retrieve the contents of the Private variable associated with a property
Private keyword
Can be used to create a Public property
Get block
Used in a Property procedure header to indicate that you are creating a property whose value can be retrieved by an application but cannot be set by the application
behaviors
Characteristics that describes the object
attributes
(Matching)
4.9/5
(40)

When an application needs to assign data to or retrieve data from a Private variable in a class, it must use a(n) ____ property to do so.

(Multiple Choice)
4.9/5
(33)

In OOP, the term ____ means to enclose in a class.

(Multiple Choice)
4.9/5
(42)

By convention, the names of the Private variables in a class start with a(n) ____.

(Multiple Choice)
4.9/5
(36)
Showing 21 - 40 of 42
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)