Exam 11: Classes and Objects

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

When you use a class to create an object in an application, the procedures declared using the Private keyword are hidden from the application.

(True/False)
4.7/5
(41)

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

(Multiple Choice)
4.8/5
(32)

The sole purpose of a constructor is to initialize the class's variables.

(True/False)
4.7/5
(28)

Each constructor included in a class has the name ____.

(Multiple Choice)
4.9/5
(43)

A method that is not a constructor can be either a Sub procedure or a Function procedure.

(True/False)
4.9/5
(43)

Objects are created, or instantiated, from ____.

(Multiple Choice)
4.8/5
(35)

The data type of a Property procedure must match the data type of the Private variable associated with the Property procedure.

(True/False)
4.9/5
(34)

You can define a class that contains properties only.

(True/False)
4.9/5
(35)

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

(Multiple Choice)
4.9/5
(39)

Two constructors in a class can have the same parameters.

(True/False)
4.9/5
(33)

A statement that is used to create an object from a class must begin with the Dim keyword.

(True/False)
4.7/5
(37)

Every class should have at least one constructor.

(True/False)
4.9/5
(39)

The code in the Get block allows the application to assign a value to the Private variable.

(True/False)
4.7/5
(40)

The default constructor has ____ parameter(s).

(Multiple Choice)
4.8/5
(42)

Within the Property procedure you define a Get block of code and a(n) ____ block of code.

(Multiple Choice)
5.0/5
(44)

A Property procedure begins with the keywords ____.

(Multiple Choice)
4.8/5
(48)

The properties of an object allow the object to perform tasks.

(True/False)
4.9/5
(39)

The Get statement ends with the keyword(s) ____.

(Multiple Choice)
4.8/5
(40)

By convention, the first letter of each word in a property name should be capitalized.

(True/False)
4.8/5
(34)

The Get block of a Public property typically contains the validation code.

(True/False)
4.8/5
(37)
Showing 21 - 40 of 50
close modal

Filters

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