Exam 26: I Love This Class Creating a Class

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

You create a Public property using a(n) ____ procedure.

Free
(Multiple Choice)
4.9/5
(40)
Correct Answer:
Verified

B

You define a class using the ____ statement.

Free
(Multiple Choice)
4.9/5
(37)
Correct Answer:
Verified

D

You can enter one or more instructions within a Set statement.

Free
(True/False)
4.8/5
(47)
Correct Answer:
Verified

True

The Get block in a Property procedure contains the Set statement, which begins with the keyword Set and ends with the keywords End Set.

(True/False)
4.9/5
(44)

A class contains-or, in OOP terms, it ____-all of the attributes and behaviors of the object it instantiates.

(Multiple Choice)
4.8/5
(34)

The code contained in the ____ block of a Property procedure allows an application to retrieve the contents of the Private variable associated with the property.

(Multiple Choice)
4.9/5
(43)

A class can have only one default ____.

(Multiple Choice)
4.8/5
(32)

Every object has ____, which are the characteristics that describe the object.

(Multiple Choice)
4.8/5
(41)

Pascal case means you capitalize the first letter in the name and the first letter in any subsequent words in the name.

(True/False)
4.8/5
(32)

After defining a class, you can use it to instantiate a maximum of one object.

(True/False)
4.8/5
(41)

The code in the ____ block of a Property procedure allows an application to assign a value to the Private variable associated with the property.

(Multiple Choice)
4.9/5
(36)

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

(Multiple Choice)
4.8/5
(45)

A class can contain methods other than constructors.

(True/False)
4.9/5
(31)

A class can have a maximum of one constructor.

(True/False)
5.0/5
(39)

Every object used in an object-oriented program is created from a ____, which is a pattern that the computer uses to create the object.

(Multiple Choice)
4.8/5
(26)

The real advantage of object-oriented programming is the ability to reuse a class-for example, use it in a different way or in a different application.

(True/False)
4.9/5
(31)

When naming the Private variables in a class, many programmers use the underscore as the first character and then use camel case for the remainder of the name.

(True/False)
4.8/5
(41)

The first word in a method name should be a(n) ____.

(Multiple Choice)
4.8/5
(35)

A(n) ____ is a class method, always named New, whose sole purpose is to initialize the class's Private variables.

(Multiple Choice)
4.9/5
(24)

____ are the actions to which an object can respond.

(Multiple Choice)
4.8/5
(38)
Showing 1 - 20 of 25
close modal

Filters

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