Exam 15: Creating Classes and Objects

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

You use the ____ keyword to instantiate a procedure-level object variable.

Free
(Multiple Choice)
4.7/5
(44)
Correct Answer:
Verified

B

What are the rules for naming methods?

Free
(Essay)
4.9/5
(32)
Correct Answer:
Verified

The rules for naming methods are similar to the rules for naming properties. Like property names, method names should be entered using Pascal case. However, unlike property names, the first word in a method name should be a verb; any subsequent words should be nouns and adjectives.

An application cannot directly refer to the ____________________ variables in a class.

Free
(Short Answer)
4.7/5
(32)
Correct Answer:
Verified

Private

After you define a class, you can then use the class to instantiate one or more ____________________.

(Short Answer)
4.8/5
(39)

In Visual Basic, you can define your own classes and then create instances from those classes.

(True/False)
4.7/5
(41)

The only type of method which can be overloaded is a constructor.

(True/False)
4.9/5
(40)

A constructor begins with the keywords ____.

(Multiple Choice)
4.8/5
(27)

In its simplest form, the Class statement can be used in place of the Structure statement.

(True/False)
4.8/5
(39)

For the class Student , how you would create the auto-implemented string property of Firstname ?

(Essay)
4.8/5
(42)

Constructors that contain parameters are called ____________________ constructors.

(Short Answer)
4.8/5
(33)

Each object is an instance of the ____ from which it is created.

(Multiple Choice)
4.9/5
(40)

The ____ of a class are represented by methods, which can be Sub or Function procedures.

(Multiple Choice)
4.8/5
(37)

The Private variables of a class are visible to applications that contain an instance of the class.

(True/False)
4.7/5
(27)

The Set statement begins with the keyword Set and ends with the keywords ____.

(Multiple Choice)
4.7/5
(37)

What are the steps to add a class file to the current project?

(Essay)
4.9/5
(28)

The convention is to use ____ case for the names of the Public variables in a class.

(Multiple Choice)
4.9/5
(41)

The ____ of a class are most often represented by Private variables and Public properties.

(Multiple Choice)
4.9/5
(46)

What is meant by overloaded methods and when is overloading of methods useful?

(Essay)
4.8/5
(40)

When a variable in a class is declared using the ____ keyword, it can be accessed by any application that contains an instance of the class.

(Multiple Choice)
4.9/5
(41)

____ enable you to specify the property of a class in one line of code.

(Multiple Choice)
5.0/5
(38)
Showing 1 - 20 of 42
close modal

Filters

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